From 6109808c8a7a954f0e914796f863d06b3419fe3a Mon Sep 17 00:00:00 2001 From: Scott Gray Date: Wed, 17 Mar 2010 17:28:01 +0000 Subject: [PATCH] Tabs to spaces git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@924378 13f79535-47bb-0310-9956-ffa450edef68 --- .project | 30 +- ant | 16 +- .../accounting/config/AccountingUiLabels.xml | 2 +- .../webapp/accounting/WEB-INF/controller.xml | 2 +- .../payment/report/PaymentReport.rptdesign | 50 +- .../accounting/widget/AccountingMenus.xml | 2 +- .../accounting/widget/CommonScreens.xml | 14 +- .../accounting/widget/PaymentScreens.xml | 8 +- .../actions/GetProductStoreAndWebSite.groovy | 2 +- .../humanres/entitydef/entitymodel.xml | 4 +- .../widget/GlobalHRSettingScreens.xml | 2 +- .../order/data/SalesOrderDemoData.xml | 26 +- .../order/data/helpdata/HELP_ORDER_Report.xml | 128 +- .../order/entitydef/entitymodel_olap.xml | 6 +- .../org/ofbiz/order/olap/FactServices.xml | 4 +- .../reports/NetBeforeOverheadMonthlyEvent.xml | 4 +- .../reports/NetBeforeOverheadReport.groovy | 18 +- .../actions/reports/OrderByChannel.groovy | 4 +- .../reports/ProductDemandReport.groovy | 8 +- .../actions/reports/SalesReport.groovy | 6 +- .../webapp/ordermgr/WEB-INF/controller.xml | 2 +- .../reports/CouponSalesReport.rptdesign | 64 +- .../reports/Last3MonthsSalesReport.rptdesign | 98 +- .../reports/NetBeforeOverheadReport.rptdesign | 1188 +++++++-------- .../reports/OrderDiscountCodeReport.rptdesign | 20 +- .../reports/OrdersByChannel.rptdesign | 6 +- .../reports/ProductDemandReport.rptdesign | 72 +- .../ordermgr/reports/SalesReport.rptdesign | 804 +++++----- .../order/widget/ordermgr/ReportScreens.xml | 2 +- .../inventory/InventoryItemReport.groovy | 8 +- .../report/InventoryReport.rptdesign | 68 +- framework/base/dtd/ofbiz-component.xsd | 2 +- .../base/src/org/ofbiz/base/json/JSON.jj | 4 +- .../script/org/ofbiz/bi/DimensionServices.xml | 2 +- framework/birt/build.xml | 2 +- framework/birt/data/helpdata/HELP_BIRT.xml | 14 +- framework/common/data/GeoData_CN.xml | 40 +- .../includes/ajaxAutocompleteOptions.ftl | 6 +- .../src/org/ofbiz/datafile/Record.java | 712 ++++----- framework/documents/Framework.xml | 10 +- framework/entity/documents/EntityEngine.xml | 10 +- .../example/webapp/birt/WEB-INF/birt.tld | 1342 ++++++++--------- .../webapp/birt/WEB-INF/server-config.wsdd | 180 +-- .../example/webapp/example/WEB-INF/birt.tld | 1342 ++++++++--------- .../format/format_iso_date.js | 2 +- framework/images/webapp/images/selectall.js | 10 +- framework/minilang/documents/MiniLang.xml | 14 +- framework/service/documents/ServiceEngine.xml | 8 +- framework/service/dtd/service-group.xsd | 8 +- framework/sql/src/org/ofbiz/sql/Parser.jj | 902 +++++------ .../src/org/ofbiz/sql/test/GoodParseAll.sql | 54 +- .../sql/src/org/ofbiz/sql/test/TestSelect.sql | 26 +- framework/testtools/documents/TestTools.xml | 10 +- framework/testtools/dtd/SeleniumXml.xsd | 152 +- framework/testtools/dtd/test-suite.xsd | 2 +- .../example/recorded/AjaxExample.html | 144 +- .../example/recorded/NewExample.html | 156 +- .../example/recorded/NewFeature.html | 102 +- .../webtools/data/helpdata/HELP_WEBTOOLS.xml | 8 +- .../webapp/webtools/entity/EditEntity.jsp | 20 +- .../org/ofbiz/widget/form/ModelFormField.java | 4 +- specialpurpose/build.xml | 2 +- .../data/helpdata/HELP_EBAY_AdvanceSearch.xml | 8 +- .../HELP_EBAY_EditEbayConfiguration.xml | 16 +- .../ebay/data/helpdata/HELP_EBAY_Features.xml | 38 +- .../helpdata/HELP_EBAY_FindConfigurations.xml | 30 +- .../HELP_EBAY_ManageOrdersFromEbay.xml | 10 +- .../HELP_EBAY_ProductsExportToEbay.xml | 32 +- .../helpdata/HELP_EBAY_ShippingMethods.xml | 14 +- .../data/helpdata/HELP_EBAY_eBayOrders.xml | 10 +- .../ebay/data/helpdata/HELP_EBAY_main.xml | 68 +- .../org/ofbiz/ebay/ProductsExportToEbay.java | 2 +- specialpurpose/ebaystore/build.xml | 4 +- .../ebaystore/data/DemoEbayStoreData.xml | 24 +- .../ebaystore/data/EbayStoreTypeData.xml | 12 +- .../data/helpdata/HELP_EBAY_LeaveFeedback.xml | 36 +- .../src/org/ofbiz/ebaystore/EbayStore.java | 4 +- .../email/GetProductStoreEmailTemplate.groovy | 16 +- .../ebaystore/widget/EbayAccountForms.xml | 2 +- .../ecommerce/images/checkoutProcess.js | 4 +- .../webapp/ecommerce/images/profile.js | 6 +- .../webapp/ofbiz/images/global.css | 406 ++--- .../webapp/ofbiz/images/rsscss.css | 38 +- .../webapp/ofbiz/script/slides.js | 200 +-- .../projectmgr/entitydef/entitymodel.xml | 2 +- .../projectmgr/widget/forms/ProjectForms.xml | 6 +- .../webapp/bizznesstime/css/legacy.css | 646 ++++---- .../webapp/bizznesstime/css/login.css | 132 +- .../webapp/bizznesstime/js/application.js | 228 +-- .../webapp/droppingcrumbs/js/application.js | 228 +-- themes/flatgrey/webapp/flatgrey/maincss.css | 2 +- themes/tomahawk/webapp/tomahawk/css/style.css | 54 +- 92 files changed, 5118 insertions(+), 5118 deletions(-) diff --git a/.project b/.project index 3b665677d5..fc8c3ae6cf 100644 --- a/.project +++ b/.project @@ -1,18 +1,18 @@ - ofbiz - - - - - - org.eclipse.jdt.core.javabuilder - - - - - - org.eclipse.jdt.groovy.core.groovyNature - org.eclipse.jdt.core.javanature - + ofbiz + + + + + + org.eclipse.jdt.core.javabuilder + + + + + + org.eclipse.jdt.groovy.core.groovyNature + org.eclipse.jdt.core.javanature + diff --git a/ant b/ant index f2e6389163..a8464d6feb 100755 --- a/ant +++ b/ant @@ -26,14 +26,14 @@ else fi find_jar() { - top="$(cd "$(dirname "$0")"; echo "$PWD")" - set -- "$top"/framework/base/lib/ant-launcher-*.jar - if [ $# = 1 ] && [ -e "$1" ]; then - echo "$1" - else - echo "Couldn't find ant-launcher.jar" 1>&2 - exit 1 - fi + top="$(cd "$(dirname "$0")"; echo "$PWD")" + set -- "$top"/framework/base/lib/ant-launcher-*.jar + if [ $# = 1 ] && [ -e "$1" ]; then + echo "$1" + else + echo "Couldn't find ant-launcher.jar" 1>&2 + exit 1 + fi } "$JAVA" -jar "$(find_jar)" "$@" diff --git a/applications/accounting/config/AccountingUiLabels.xml b/applications/accounting/config/AccountingUiLabels.xml index ad35b7d9a8..7f92380b1b 100644 --- a/applications/accounting/config/AccountingUiLabels.xml +++ b/applications/accounting/config/AccountingUiLabels.xml @@ -6690,7 +6690,7 @@ Organization GL Settings Configurations internes du GL संगठन जीएल(Gl) सेटिंग्स - Organisatie grootboek instellingen + Organisatie grootboek instellingen 组织机构总账设置 diff --git a/applications/accounting/webapp/accounting/WEB-INF/controller.xml b/applications/accounting/webapp/accounting/WEB-INF/controller.xml index 2a975d7358..e38d2be8cc 100644 --- a/applications/accounting/webapp/accounting/WEB-INF/controller.xml +++ b/applications/accounting/webapp/accounting/WEB-INF/controller.xml @@ -2531,7 +2531,7 @@ under the License. - + diff --git a/applications/accounting/webapp/accounting/payment/report/PaymentReport.rptdesign b/applications/accounting/webapp/accounting/payment/report/PaymentReport.rptdesign index 28aae20068..6e86606a3d 100644 --- a/applications/accounting/webapp/accounting/payment/report/PaymentReport.rptdesign +++ b/applications/accounting/webapp/accounting/payment/report/PaymentReport.rptdesign @@ -333,22 +333,22 @@ try { input = FastMap.newInstance(); inputFields = FastMap.newInstance(); if(params!=null){ - inputFields.put("partyIdTo", params["partyIdTo"]); - inputFields.put("paymentId", params["paymentId"]); - inputFields.put("paymentTypeId", params["paymentTypeId"]); - inputFields.put("paymentId_op", params["paymentId_op"]); - inputFields.put("paymentRefNum_ic", params["paymentRefNum_ic"]); - inputFields.put("noConditionFind", params["noConditionFind"]); - inputFields.put("partyIdFrom", params["partyIdFrom"]); - inputFields.put("paymentRefNum_op", params["paymentRefNum_op"]); - inputFields.put("amount", params["amount"]); - inputFields.put("statusId", params["statusId"]); - inputFields.put("paymentGatewayResponseId", params["paymentGatewayResponseId"]); - inputFields.put("paymentId_ic", params["paymentId_ic"]); - inputFields.put("paymentRefNum", params["paymentRefNum"]); - inputFields.put("comments_ic", params["comments_ic"]); - inputFields.put("comments_op", params["comments_op"]); - inputFields.put("comments", params["comments"]); + inputFields.put("partyIdTo", params["partyIdTo"]); + inputFields.put("paymentId", params["paymentId"]); + inputFields.put("paymentTypeId", params["paymentTypeId"]); + inputFields.put("paymentId_op", params["paymentId_op"]); + inputFields.put("paymentRefNum_ic", params["paymentRefNum_ic"]); + inputFields.put("noConditionFind", params["noConditionFind"]); + inputFields.put("partyIdFrom", params["partyIdFrom"]); + inputFields.put("paymentRefNum_op", params["paymentRefNum_op"]); + inputFields.put("amount", params["amount"]); + inputFields.put("statusId", params["statusId"]); + inputFields.put("paymentGatewayResponseId", params["paymentGatewayResponseId"]); + inputFields.put("paymentId_ic", params["paymentId_ic"]); + inputFields.put("paymentRefNum", params["paymentRefNum"]); + inputFields.put("comments_ic", params["comments_ic"]); + inputFields.put("comments_op", params["comments_op"]); + inputFields.put("comments", params["comments"]); } input.put("userLogin",userLogin); input.put("inputFields",inputFields); @@ -364,16 +364,16 @@ try { }]]> diff --git a/applications/accounting/widget/AccountingMenus.xml b/applications/accounting/widget/AccountingMenus.xml index b7591772fa..586179b50b 100644 --- a/applications/accounting/widget/AccountingMenus.xml +++ b/applications/accounting/widget/AccountingMenus.xml @@ -378,7 +378,7 @@ under the License. - + diff --git a/applications/accounting/widget/CommonScreens.xml b/applications/accounting/widget/CommonScreens.xml index 02e3f600a2..5d9ec43929 100644 --- a/applications/accounting/widget/CommonScreens.xml +++ b/applications/accounting/widget/CommonScreens.xml @@ -73,13 +73,13 @@ under the License. -
- - - - - +
+ + + + +
diff --git a/applications/accounting/widget/PaymentScreens.xml b/applications/accounting/widget/PaymentScreens.xml index 1c083b607d..2b15ac3e32 100644 --- a/applications/accounting/widget/PaymentScreens.xml +++ b/applications/accounting/widget/PaymentScreens.xml @@ -542,7 +542,7 @@ under the License.
- + @@ -550,9 +550,9 @@ under the License.
- - - + + +
diff --git a/applications/commonext/webapp/ofbizsetup/WEB-INF/actions/GetProductStoreAndWebSite.groovy b/applications/commonext/webapp/ofbizsetup/WEB-INF/actions/GetProductStoreAndWebSite.groovy index a9ce468fe7..9bc594f54e 100644 --- a/applications/commonext/webapp/ofbizsetup/WEB-INF/actions/GetProductStoreAndWebSite.groovy +++ b/applications/commonext/webapp/ofbizsetup/WEB-INF/actions/GetProductStoreAndWebSite.groovy @@ -39,5 +39,5 @@ if("website".equals(tabButtonItemTop)){ context.showScreen = "message"; return; } - context.webSite = webSite; + context.webSite = webSite; } diff --git a/applications/humanres/entitydef/entitymodel.xml b/applications/humanres/entitydef/entitymodel.xml index 847f400998..2c76f7330a 100644 --- a/applications/humanres/entitydef/entitymodel.xml +++ b/applications/humanres/entitydef/entitymodel.xml @@ -436,7 +436,7 @@ under the License. - + @@ -452,7 +452,7 @@ under the License. - + - + diff --git a/applications/order/data/SalesOrderDemoData.xml b/applications/order/data/SalesOrderDemoData.xml index d5c88dfa78..2a73081ab1 100644 --- a/applications/order/data/SalesOrderDemoData.xml +++ b/applications/order/data/SalesOrderDemoData.xml @@ -1761,7 +1761,7 @@ under the License. - + @@ -1771,16 +1771,16 @@ under the License. - - - - - - - - - - - - + + + + + + + + + + + + diff --git a/applications/order/data/helpdata/HELP_ORDER_Report.xml b/applications/order/data/helpdata/HELP_ORDER_Report.xml index 87eb6b2c7e..1d6cf20a97 100644 --- a/applications/order/data/helpdata/HELP_ORDER_Report.xml +++ b/applications/order/data/helpdata/HELP_ORDER_Report.xml @@ -19,81 +19,81 @@ xmlns="http://docbook.org/ns/docbook"> Order Reports Help. - The Order Reports provide general information about orders in the system. + The Order Reports provide general information about orders in the system.
- - Initial steps. - -
+ + Initial steps. + +
If your reports look empty it may be required to initialize the warehouse entities in the BI component. - - - Go to :Business Intelligence - - - Click "Quick Init DataWarehouse". System will automatic initial Data in the warehouse for Reports - - - Go back to : Order Reports. - - -
+ + + Go to :Business Intelligence + + + Click "Quick Init DataWarehouse". System will automatic initial Data in the warehouse for Reports + + + Go back to : Order Reports. + + +
Reports List
- 1. Sales Order By Referrer Report - - There are referrers, link, totals orders, quantity totals and amount totals. They are grouped by referrer. - + 1. Sales Order By Referrer Report + + There are referrers, link, totals orders, quantity totals and amount totals. They are grouped by referrer. +
- 2. Sales Order By Channel Report - - There are total Orders, total Items, quantity totals and amount totals. They are grouped by Sales Channel. - + 2. Sales Order By Channel Report + + There are total Orders, total Items, quantity totals and amount totals. They are grouped by Sales Channel. + +
+
+ 3. Sale Orders Discount Code Report + + There are order, product, promotion and discount. This report is list of All orders. + +
+
+ 4. Last Three Months Sales Report + + There are products, prices, stock, sale out quantity and sale out total amount. + This report is list of all products, it contains the sales and movements in last 3 months. + +
+
+ 5. Coupon Sales Report + + This report lists promotions, total orders, percent of total orders, total orders amount, percent of total orders amount and shipping amounts. + +
+
+ 6. Sales Report + + This Sales report contains paid and unpaid sales orders. + +
+
+ 7. Net Before Overhead Report + + Net Before Overhead Report is the profit calculation of paid-shipped orders and all the occurred fee excluding the overhead cost. + They are grouped by Product Store Id.(Demo data for Net Before Overhead Report have in Product Store Id "B2CStore") + +
+
+ 8. Product Demand Report + + Product Demand Report is the report to show us which product sells good and which product doesn’t sell good or not selling at all in one account as well as for all accounts in last 4 weeks. + They are grouped by Product Store Id.(Demo data for Product Demand Report have in Product Store Id "B2CStore") +
-
- 3. Sale Orders Discount Code Report - - There are order, product, promotion and discount. This report is list of All orders. - -
-
- 4. Last Three Months Sales Report - - There are products, prices, stock, sale out quantity and sale out total amount. - This report is list of all products, it contains the sales and movements in last 3 months. - -
-
- 5. Coupon Sales Report - - This report lists promotions, total orders, percent of total orders, total orders amount, percent of total orders amount and shipping amounts. - -
-
- 6. Sales Report - - This Sales report contains paid and unpaid sales orders. - -
-
- 7. Net Before Overhead Report - - Net Before Overhead Report is the profit calculation of paid-shipped orders and all the occurred fee excluding the overhead cost. - They are grouped by Product Store Id.(Demo data for Net Before Overhead Report have in Product Store Id "B2CStore") - -
-
- 8. Product Demand Report - - Product Demand Report is the report to show us which product sells good and which product doesn’t sell good or not selling at all in one account as well as for all accounts in last 4 weeks. - They are grouped by Product Store Id.(Demo data for Product Demand Report have in Product Store Id "B2CStore") - -
diff --git a/applications/order/entitydef/entitymodel_olap.xml b/applications/order/entitydef/entitymodel_olap.xml index fc6a44487c..4bbf482b5f 100644 --- a/applications/order/entitydef/entitymodel_olap.xml +++ b/applications/order/entitydef/entitymodel_olap.xml @@ -39,7 +39,7 @@ under the License. - + @@ -215,8 +215,8 @@ under the License. - - + + diff --git a/applications/order/script/org/ofbiz/order/olap/FactServices.xml b/applications/order/script/org/ofbiz/order/olap/FactServices.xml index fcd4ea728f..775f8fab7d 100644 --- a/applications/order/script/org/ofbiz/order/olap/FactServices.xml +++ b/applications/order/script/org/ofbiz/order/olap/FactServices.xml @@ -266,8 +266,8 @@ under the License. - - + + diff --git a/applications/order/script/org/ofbiz/order/reports/NetBeforeOverheadMonthlyEvent.xml b/applications/order/script/org/ofbiz/order/reports/NetBeforeOverheadMonthlyEvent.xml index 987c2e9910..bd49b67610 100644 --- a/applications/order/script/org/ofbiz/order/reports/NetBeforeOverheadMonthlyEvent.xml +++ b/applications/order/script/org/ofbiz/order/reports/NetBeforeOverheadMonthlyEvent.xml @@ -26,7 +26,7 @@ - + @@ -45,7 +45,7 @@ - + diff --git a/applications/order/webapp/ordermgr/WEB-INF/actions/reports/NetBeforeOverheadReport.groovy b/applications/order/webapp/ordermgr/WEB-INF/actions/reports/NetBeforeOverheadReport.groovy index 62432c23b9..3edf655fe5 100644 --- a/applications/order/webapp/ordermgr/WEB-INF/actions/reports/NetBeforeOverheadReport.groovy +++ b/applications/order/webapp/ordermgr/WEB-INF/actions/reports/NetBeforeOverheadReport.groovy @@ -30,26 +30,26 @@ DateYear = DateStr.substring(0,4); if (DateMonth == "01"||DateMonth == "03"||DateMonth == "05"||DateMonth == "07"||DateMonth == "08"||DateMonth == "10"||DateMonth == "12") { - NunberDate = 31; + NunberDate = 31; } else if (DateMonth == "02") { - NunberDate = 29; + NunberDate = 29; } else { - NunberDate = 30; + NunberDate = 30; } birtParameters = [:]; try { - birtParameters.productStoreId = productStoreId; - birtParameters.DateDay = DateDay; - birtParameters.DateMonth = DateMonth; - birtParameters.DateYear = DateYear; - birtParameters.NunberDate = NunberDate; + birtParameters.productStoreId = productStoreId; + birtParameters.DateDay = DateDay; + birtParameters.DateMonth = DateMonth; + birtParameters.DateYear = DateYear; + birtParameters.NunberDate = NunberDate; } catch (e) { - Debug.logError(e, ""); + Debug.logError(e, ""); } request.setAttribute("birtParameters", birtParameters); diff --git a/applications/order/webapp/ordermgr/WEB-INF/actions/reports/OrderByChannel.groovy b/applications/order/webapp/ordermgr/WEB-INF/actions/reports/OrderByChannel.groovy index 647839778b..4a587e72f3 100644 --- a/applications/order/webapp/ordermgr/WEB-INF/actions/reports/OrderByChannel.groovy +++ b/applications/order/webapp/ordermgr/WEB-INF/actions/reports/OrderByChannel.groovy @@ -21,9 +21,9 @@ import org.ofbiz.base.util.*; birtParameters = [:]; if(request.getParameter("saleChannel")){ - birtParameters.saleChannel = request.getParameter("saleChannel"); + birtParameters.saleChannel = request.getParameter("saleChannel"); }else{ - birtParameters.saleChannel = "null"; + birtParameters.saleChannel = "null"; } request.setAttribute("birtParameters", birtParameters); diff --git a/applications/order/webapp/ordermgr/WEB-INF/actions/reports/ProductDemandReport.groovy b/applications/order/webapp/ordermgr/WEB-INF/actions/reports/ProductDemandReport.groovy index e918e2cbdd..ba8bcb76aa 100644 --- a/applications/order/webapp/ordermgr/WEB-INF/actions/reports/ProductDemandReport.groovy +++ b/applications/order/webapp/ordermgr/WEB-INF/actions/reports/ProductDemandReport.groovy @@ -28,11 +28,11 @@ int Year = cal.get(Calendar.YEAR); birtParameters = [:]; try { - birtParameters.productStoreId = productStoreId; - birtParameters.Week = Week; - birtParameters.Year = Year; + birtParameters.productStoreId = productStoreId; + birtParameters.Week = Week; + birtParameters.Year = Year; } catch (e) { - Debug.logError(e, ""); + Debug.logError(e, ""); } request.setAttribute("birtParameters", birtParameters); diff --git a/applications/order/webapp/ordermgr/WEB-INF/actions/reports/SalesReport.groovy b/applications/order/webapp/ordermgr/WEB-INF/actions/reports/SalesReport.groovy index c4cfe0af5b..e5828eae14 100644 --- a/applications/order/webapp/ordermgr/WEB-INF/actions/reports/SalesReport.groovy +++ b/applications/order/webapp/ordermgr/WEB-INF/actions/reports/SalesReport.groovy @@ -24,10 +24,10 @@ thruDateStr = parameters.thruDate; birtParameters = [:]; try { - birtParameters.fromDate = Date.valueOf(fromDateStr); - birtParameters.thruDate = Date.valueOf(thruDateStr); + birtParameters.fromDate = Date.valueOf(fromDateStr); + birtParameters.thruDate = Date.valueOf(thruDateStr); } catch (e) { - Debug.logError(e, ""); + Debug.logError(e, ""); } request.setAttribute("birtParameters", birtParameters); diff --git a/applications/order/webapp/ordermgr/WEB-INF/controller.xml b/applications/order/webapp/ordermgr/WEB-INF/controller.xml index a8fe0a0015..a1aaeb0a5f 100644 --- a/applications/order/webapp/ordermgr/WEB-INF/controller.xml +++ b/applications/order/webapp/ordermgr/WEB-INF/controller.xml @@ -1103,7 +1103,7 @@ under the License. - + diff --git a/applications/order/webapp/ordermgr/reports/CouponSalesReport.rptdesign b/applications/order/webapp/ordermgr/reports/CouponSalesReport.rptdesign index 67ef341a18..5d32f65b6c 100644 --- a/applications/order/webapp/ordermgr/reports/CouponSalesReport.rptdesign +++ b/applications/order/webapp/ordermgr/reports/CouponSalesReport.rptdesign @@ -167,38 +167,38 @@ totalShippingCharge = 0; totalShippingBalance = 0; productPromoCodes = delegator.findList("ProductPromoCode", EntityCondition.makeCondition("productPromoId", EntityOperator.EQUALS, productPromoId), null, null, null, false); if(productPromoCodes.size()>0){ - productPromoCodeId = productPromoCodes.get(0).getString("productPromoCodeId"); - orderProductPromoCodes = delegator.findList("OrderProductPromoCode", EntityCondition.makeCondition("productPromoCodeId", EntityOperator.EQUALS, productPromoCodeId), null, null, null, false); - totalOrders = orderProductPromoCodes.size(); - for(i = 0; i < totalOrders; i++){ - orderId = orderProductPromoCodes.get(i).getString("orderId"); - input.put("userLogin",userLogin); - input.put("orderId",orderId); - //Order Total - orderInfo = dispatcher.runSync("getOrderHeaderInformation", input); - amount = orderInfo.get("grandTotal"); - totalOrdersAmount = totalOrdersAmount + amount; - //Shipping Total - cond = FastList.newInstance(); - cond.add(EntityCondition.makeCondition("orderId", EntityOperator.EQUALS, orderId)); - cond.add(EntityCondition.makeCondition("orderAdjustmentTypeId", EntityOperator.EQUALS, "SHIPPING_CHARGES")); - orderAdjustments = delegator.findList("OrderAdjustment", EntityCondition.makeCondition(cond, EntityOperator.AND), null, null, null, false); - orderAdjustmentSize = orderAdjustments.size(); - for(j = 0; j < orderAdjustmentSize; j++){ - shippingCharge = 0; - shippingCharge = orderAdjustments.get(j).get("amount"); - if(shippingCharge){ - shippingCharge = shippingCharge.setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue(); - } - totalShippingCharge = totalShippingCharge + shippingCharge; - } - shippingAmount = dispatcher.runSync("getOrderShippingAmount", input); - amount = shippingAmount.get("shippingAmount"); - if(amount){ - amount = amount.setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue(); - } - totalShippingAmount = totalShippingAmount + amount; - } + productPromoCodeId = productPromoCodes.get(0).getString("productPromoCodeId"); + orderProductPromoCodes = delegator.findList("OrderProductPromoCode", EntityCondition.makeCondition("productPromoCodeId", EntityOperator.EQUALS, productPromoCodeId), null, null, null, false); + totalOrders = orderProductPromoCodes.size(); + for(i = 0; i < totalOrders; i++){ + orderId = orderProductPromoCodes.get(i).getString("orderId"); + input.put("userLogin",userLogin); + input.put("orderId",orderId); + //Order Total + orderInfo = dispatcher.runSync("getOrderHeaderInformation", input); + amount = orderInfo.get("grandTotal"); + totalOrdersAmount = totalOrdersAmount + amount; + //Shipping Total + cond = FastList.newInstance(); + cond.add(EntityCondition.makeCondition("orderId", EntityOperator.EQUALS, orderId)); + cond.add(EntityCondition.makeCondition("orderAdjustmentTypeId", EntityOperator.EQUALS, "SHIPPING_CHARGES")); + orderAdjustments = delegator.findList("OrderAdjustment", EntityCondition.makeCondition(cond, EntityOperator.AND), null, null, null, false); + orderAdjustmentSize = orderAdjustments.size(); + for(j = 0; j < orderAdjustmentSize; j++){ + shippingCharge = 0; + shippingCharge = orderAdjustments.get(j).get("amount"); + if(shippingCharge){ + shippingCharge = shippingCharge.setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue(); + } + totalShippingCharge = totalShippingCharge + shippingCharge; + } + shippingAmount = dispatcher.runSync("getOrderShippingAmount", input); + amount = shippingAmount.get("shippingAmount"); + if(amount){ + amount = amount.setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue(); + } + totalShippingAmount = totalShippingAmount + amount; + } } row["productPromoId"] = productPromoId; row["promoName"] = promoName; diff --git a/applications/order/webapp/ordermgr/reports/Last3MonthsSalesReport.rptdesign b/applications/order/webapp/ordermgr/reports/Last3MonthsSalesReport.rptdesign index 099fbfdfa0..e9db4765ea 100644 --- a/applications/order/webapp/ordermgr/reports/Last3MonthsSalesReport.rptdesign +++ b/applications/order/webapp/ordermgr/reports/Last3MonthsSalesReport.rptdesign @@ -224,51 +224,51 @@ try { month = thisMonth; while(i<3){ i = i + 1; - switch(month) - { - case 1: - months.add(1); - break; - case 2: - months.add(2); - break; - case 3: - months.add(3); - break; - case 4: - months.add(4); - break; - case 5: - months.add(5); - break; - case 6: - months.add(6); - break; - case 7: - months.add(7); - break; - case 8: - months.add(8); - break; - case 9: - months.add(9); - break; - case 10: - months.add(10); - break; - case 11: - months.add(11); - break; - case 12: - months.add(12); - break; - } - month = month - 1 - } - Debug.log("================ Last 3 Months Sale Order Report====="+months); - cond = FastList.newInstance(); - cond.add(EntityCondition.makeCondition("orderDateMonthOfYear", EntityOperator.IN, months)); - cond.add(EntityCondition.makeCondition("orderDateYearName", EntityOperator.EQUALS, thisYear)); + switch(month) + { + case 1: + months.add(1); + break; + case 2: + months.add(2); + break; + case 3: + months.add(3); + break; + case 4: + months.add(4); + break; + case 5: + months.add(5); + break; + case 6: + months.add(6); + break; + case 7: + months.add(7); + break; + case 8: + months.add(8); + break; + case 9: + months.add(9); + break; + case 10: + months.add(10); + break; + case 11: + months.add(11); + break; + case 12: + months.add(12); + break; + } + month = month - 1 + } + Debug.log("================ Last 3 Months Sale Order Report====="+months); + cond = FastList.newInstance(); + cond.add(EntityCondition.makeCondition("orderDateMonthOfYear", EntityOperator.IN, months)); + cond.add(EntityCondition.makeCondition("orderDateYearName", EntityOperator.EQUALS, thisYear)); salesOrderItemStarSchemas = delegator.findList("SalesOrderItemStarSchema", EntityCondition.makeCondition(cond, EntityOperator.AND), null, null, null, false); } catch(e) { Debug.logError(e,""); @@ -298,13 +298,13 @@ price = 0; internalName = "None"; input = FastMap.newInstance(); try { - product = delegator.findByPrimaryKey("Product",UtilMisc.toMap("productId", salesOrderItemStarSchema.getString("productProductId"))); - input.put("product", product); - input.put("userLogin", userLogin); + product = delegator.findByPrimaryKey("Product",UtilMisc.toMap("productId", salesOrderItemStarSchema.getString("productProductId"))); + input.put("product", product); + input.put("userLogin", userLogin); result = dispatcher.runSync("calculateProductPrice", input); price = result.get("price"); if(product.get("internalName")){ - internalName = product.get("internalName"); + internalName = product.get("internalName"); } } catch (e) { Debug.logError(e, module); diff --git a/applications/order/webapp/ordermgr/reports/NetBeforeOverheadReport.rptdesign b/applications/order/webapp/ordermgr/reports/NetBeforeOverheadReport.rptdesign index 9088f4d651..dd3f592c27 100644 --- a/applications/order/webapp/ordermgr/reports/NetBeforeOverheadReport.rptdesign +++ b/applications/order/webapp/ordermgr/reports/NetBeforeOverheadReport.rptdesign @@ -543,7 +543,7 @@ classLoader = appContext.get(EngineConstants.APPCONTEXT_CLASSLOADER_KEY); starschemas = null; try { - productStoreId = params["productStoreId"].value; + productStoreId = params["productStoreId"].value; DateMonth = params["DateMonth"].value; DateYear = params["DateYear"].value; methodContext = new MethodContext(appContext, classLoader, MethodContext.SERVICE); @@ -580,261 +580,261 @@ if (starschemas) }]]> = totalRows) return false; { - starschema = starschemas.get(currentRow); - orderDateDateValue = starschema.getString("orderDateDateValue"); - orderDateDayName = starschema.getString("orderDateDayName"); - orderDateDayOfMonth = starschema.getString("orderDateDayOfMonth"); - orderDateMonthName = starschema.getString("orderDateMonthName"); - orderDateYearName = starschema.getString("orderDateYearName"); - orderDateYearMonthDay = starschema.getString("orderDateYearMonthDay"); - orderDateMonthOfYear = starschema.getString("orderDateMonthOfYear"); - orderDateDescription = starschema.getString("orderDateDescription"); - - quantity = starschema.getString("quantity"); - GS = starschema.getString("GrossSales"); - GMS = starschema.getString("GrossMerchandizeSales"); - GMP = starschema.getString("GrossMerchandizeProfit"); - GSP = starschema.getString("GrossShippingProfit"); - GP = starschema.getString("GrossProfit"); - eBay = starschema.getString("eBay"); - RRC = starschema.getString("RRC"); - Others = starschema.getString("OtherFree"); - NBO = starschema.getString("NBO"); - - salesChannelEnumId = starschema.getString("salesChannelEnumId"); + starschema = starschemas.get(currentRow); + orderDateDateValue = starschema.getString("orderDateDateValue"); + orderDateDayName = starschema.getString("orderDateDayName"); + orderDateDayOfMonth = starschema.getString("orderDateDayOfMonth"); + orderDateMonthName = starschema.getString("orderDateMonthName"); + orderDateYearName = starschema.getString("orderDateYearName"); + orderDateYearMonthDay = starschema.getString("orderDateYearMonthDay"); + orderDateMonthOfYear = starschema.getString("orderDateMonthOfYear"); + orderDateDescription = starschema.getString("orderDateDescription"); + + quantity = starschema.getString("quantity"); + GS = starschema.getString("GrossSales"); + GMS = starschema.getString("GrossMerchandizeSales"); + GMP = starschema.getString("GrossMerchandizeProfit"); + GSP = starschema.getString("GrossShippingProfit"); + GP = starschema.getString("GrossProfit"); + eBay = starschema.getString("eBay"); + RRC = starschema.getString("RRC"); + Others = starschema.getString("OtherFree"); + NBO = starschema.getString("NBO"); + + salesChannelEnumId = starschema.getString("salesChannelEnumId"); - if (orderDateMonthOfYear == DateMonth) - { - row["Daily"] = 1; - } - else - { - row["Daily"] = 2; - } - - if (salesChannelEnumId == "B2C_AU_SALES_CHANNEL") - { - row["SalesChannel"] = salesChannelEnumId; - row["orderDateMonthName"] = orderDateMonthName; - row["orderDateDateValue"] = orderDateDateValue; - row["Parcel"] = quantity; - row["GS"] = GS; - row["GMS"] = GMS; - row["GMP"] = GMP; - row["GSP"] = GSP; - row["GP"] = GP; - row["eBay"] = eBay; - row["RRC"] = RRC; - row["Others"] = Others; - row["NBO"] = NBO; - row["NBO"] = NBO; - row["Pod"] = pod1; - row["Account"] = account_B2C_AU; - row["Date"] = orderDateYearMonthDay; - row["Month"] = orderDateMonthOfYear; - row["MonthName"] = orderDateMonthName; - row["Today"] = DateDay; - } - if (salesChannelEnumId == "B2C_CA_SALES_CHANNEL") - { - row["SalesChannel"] = salesChannelEnumId; - row["orderDateMonthName"] = orderDateMonthName; - row["orderDateDateValue"] = orderDateDateValue; - row["Parcel"] = quantity; - row["GS"] = GS; - row["GMS"] = GMS; - row["GMP"] = GMP; - row["GSP"] = GSP; - row["GP"] = GP; - row["eBay"] = eBay; - row["RRC"] = RRC; - row["Others"] = Others; - row["NBO"] = NBO; - row["Pod"] = pod1; - row["Account"] = account_B2C_CA; - row["Date"] = orderDateYearMonthDay; - row["Month"] = orderDateMonthOfYear; - row["MonthName"] = orderDateMonthName; - row["Today"] = DateDay; - } - if (salesChannelEnumId == "B2C_IE_SALES_CHANNEL") - { - row["SalesChannel"] = salesChannelEnumId; - row["orderDateMonthName"] = orderDateMonthName; - row["orderDateDateValue"] = orderDateDateValue; - row["Parcel"] = quantity; - row["GS"] = GS; - row["GMS"] = GMS; - row["GMP"] = GMP; - row["GSP"] = GSP; - row["GP"] = GP; - row["eBay"] = eBay; - row["RRC"] = RRC; - row["Others"] = Others; - row["NBO"] = NBO; - row["Pod"] = pod1; - row["Account"] = account_B2C_IE; - row["Date"] = orderDateYearMonthDay; - row["Month"] = orderDateMonthOfYear; - row["MonthName"] = orderDateMonthName; - row["Today"] = DateDay; - } - if (salesChannelEnumId == "B2C_SG_SALES_CHANNEL") - { - row["SalesChannel"] = salesChannelEnumId; - row["orderDateMonthName"] = orderDateMonthName; - row["orderDateDateValue"] = orderDateDateValue; - row["Parcel"] = quantity; - row["GS"] = GS; - row["GMS"] = GMS; - row["GMP"] = GMP; - row["GSP"] = GSP; - row["GP"] = GP; - row["eBay"] = eBay; - row["RRC"] = RRC; - row["Others"] = Others; - row["NBO"] = NBO; - row["Pod"] = pod1; - row["Account"] = account_B2C_SG; - row["Date"] = orderDateYearMonthDay; - row["Month"] = orderDateMonthOfYear; - row["MonthName"] = orderDateMonthName; - row["Today"] = DateDay; - } - if (salesChannelEnumId == "B2C_UK_SALES_CHANNEL") - { - row["SalesChannel"] = salesChannelEnumId; - row["orderDateMonthName"] = orderDateMonthName; - row["orderDateDateValue"] = orderDateDateValue; - row["Parcel"] = quantity; - row["GS"] = GS; - row["GMS"] = GMS; - row["GMP"] = GMP; - row["GSP"] = GSP; - row["GP"] = GP; - row["eBay"] = eBay; - row["RRC"] = RRC; - row["Others"] = Others; - row["NBO"] = NBO; - row["Pod"] = pod1; - row["Account"] = account_B2C_UK; - row["Date"] = orderDateYearMonthDay; - row["Month"] = orderDateMonthOfYear; - row["MonthName"] = orderDateMonthName; - row["Today"] = DateDay; - } - if (salesChannelEnumId == "B2C_US_SALES_CHANNEL") - { - row["SalesChannel"] = salesChannelEnumId; - row["orderDateMonthName"] = orderDateMonthName; - row["orderDateDateValue"] = orderDateDateValue; - row["Parcel"] = quantity; - row["GS"] = GS; - row["GMS"] = GMS; - row["GMP"] = GMP; - row["GSP"] = GSP; - row["GP"] = GP; - row["eBay"] = eBay; - row["RRC"] = RRC; - row["Others"] = Others; - row["NBO"] = NBO; - row["Pod"] = pod1; - row["Account"] = account_B2C_US; - row["Date"] = orderDateYearMonthDay; - row["Month"] = orderDateMonthOfYear; - row["MonthName"] = orderDateMonthName; - row["Today"] = DateDay; - } - if (salesChannelEnumId == "B2C_DE_SALES_CHANNEL") - { - row["SalesChannel"] = salesChannelEnumId; - row["orderDateMonthName"] = orderDateMonthName; - row["orderDateDateValue"] = orderDateDateValue; - row["Parcel"] = quantity; - row["GS"] = GS; - row["GMS"] = GMS; - row["GMP"] = GMP; - row["GSP"] = GSP; - row["GP"] = GP; - row["eBay"] = eBay; - row["RRC"] = RRC; - row["Others"] = Others; - row["NBO"] = NBO; - row["Pod"] = pod2; - row["Account"] = account_B2C_DE; - row["Date"] = orderDateYearMonthDay; - row["Month"] = orderDateMonthOfYear; - row["MonthName"] = orderDateMonthName; - row["Today"] = DateDay; - } - if (salesChannelEnumId == "B2C_ES_SALES_CHANNEL") - { - row["SalesChannel"] = salesChannelEnumId; - row["orderDateMonthName"] = orderDateMonthName; - row["orderDateDateValue"] = orderDateDateValue; - row["Parcel"] = quantity; - row["GS"] = GS; - row["GMS"] = GMS; - row["GMP"] = GMP; - row["GSP"] = GSP; - row["GP"] = GP; - row["eBay"] = eBay; - row["RRC"] = RRC; - row["Others"] = Others; - row["NBO"] = NBO; - row["Pod"] = pod2; - row["Account"] = account_B2C_ES; - row["Date"] = orderDateYearMonthDay; - row["Month"] = orderDateMonthOfYear; - row["MonthName"] = orderDateMonthName; - row["Today"] = DateDay; - } - if (salesChannelEnumId == "B2C_FR_SALES_CHANNEL") - { - row["SalesChannel"] = salesChannelEnumId; - row["orderDateMonthName"] = orderDateMonthName; - row["orderDateDateValue"] = orderDateDateValue; - row["Parcel"] = quantity; - row["GS"] = GS; - row["GMS"] = GMS; - row["GMP"] = GMP; - row["GSP"] = GSP; - row["GP"] = GP; - row["eBay"] = eBay; - row["RRC"] = RRC; - row["Others"] = Others; - row["NBO"] = NBO; - row["Pod"] = pod2; - row["Account"] = account_B2C_FR; - row["Date"] = orderDateYearMonthDay; - row["Month"] = orderDateMonthOfYear; - row["MonthName"] = orderDateMonthName; - row["Today"] = DateDay; - } - if (salesChannelEnumId == "B2C_IT_SALES_CHANNEL") - { - row["SalesChannel"] = salesChannelEnumId; - row["orderDateMonthName"] = orderDateMonthName; - row["orderDateDateValue"] = orderDateDateValue; - row["Parcel"] = quantity; - row["GS"] = GS; - row["GMS"] = GMS; - row["GMP"] = GMP; - row["GSP"] = GSP; - row["GP"] = GP; - row["eBay"] = eBay; - row["RRC"] = RRC; - row["Others"] = Others; - row["NBO"] = NBO; - row["Pod"] = pod2; - row["Account"] = account_B2C_IT; - row["Date"] = orderDateYearMonthDay; - row["Month"] = orderDateMonthOfYear; - row["MonthName"] = orderDateMonthName; - row["Today"] = DateDay; - } - - currentRow ++; + if (orderDateMonthOfYear == DateMonth) + { + row["Daily"] = 1; + } + else + { + row["Daily"] = 2; + } + + if (salesChannelEnumId == "B2C_AU_SALES_CHANNEL") + { + row["SalesChannel"] = salesChannelEnumId; + row["orderDateMonthName"] = orderDateMonthName; + row["orderDateDateValue"] = orderDateDateValue; + row["Parcel"] = quantity; + row["GS"] = GS; + row["GMS"] = GMS; + row["GMP"] = GMP; + row["GSP"] = GSP; + row["GP"] = GP; + row["eBay"] = eBay; + row["RRC"] = RRC; + row["Others"] = Others; + row["NBO"] = NBO; + row["NBO"] = NBO; + row["Pod"] = pod1; + row["Account"] = account_B2C_AU; + row["Date"] = orderDateYearMonthDay; + row["Month"] = orderDateMonthOfYear; + row["MonthName"] = orderDateMonthName; + row["Today"] = DateDay; + } + if (salesChannelEnumId == "B2C_CA_SALES_CHANNEL") + { + row["SalesChannel"] = salesChannelEnumId; + row["orderDateMonthName"] = orderDateMonthName; + row["orderDateDateValue"] = orderDateDateValue; + row["Parcel"] = quantity; + row["GS"] = GS; + row["GMS"] = GMS; + row["GMP"] = GMP; + row["GSP"] = GSP; + row["GP"] = GP; + row["eBay"] = eBay; + row["RRC"] = RRC; + row["Others"] = Others; + row["NBO"] = NBO; + row["Pod"] = pod1; + row["Account"] = account_B2C_CA; + row["Date"] = orderDateYearMonthDay; + row["Month"] = orderDateMonthOfYear; + row["MonthName"] = orderDateMonthName; + row["Today"] = DateDay; + } + if (salesChannelEnumId == "B2C_IE_SALES_CHANNEL") + { + row["SalesChannel"] = salesChannelEnumId; + row["orderDateMonthName"] = orderDateMonthName; + row["orderDateDateValue"] = orderDateDateValue; + row["Parcel"] = quantity; + row["GS"] = GS; + row["GMS"] = GMS; + row["GMP"] = GMP; + row["GSP"] = GSP; + row["GP"] = GP; + row["eBay"] = eBay; + row["RRC"] = RRC; + row["Others"] = Others; + row["NBO"] = NBO; + row["Pod"] = pod1; + row["Account"] = account_B2C_IE; + row["Date"] = orderDateYearMonthDay; + row["Month"] = orderDateMonthOfYear; + row["MonthName"] = orderDateMonthName; + row["Today"] = DateDay; + } + if (salesChannelEnumId == "B2C_SG_SALES_CHANNEL") + { + row["SalesChannel"] = salesChannelEnumId; + row["orderDateMonthName"] = orderDateMonthName; + row["orderDateDateValue"] = orderDateDateValue; + row["Parcel"] = quantity; + row["GS"] = GS; + row["GMS"] = GMS; + row["GMP"] = GMP; + row["GSP"] = GSP; + row["GP"] = GP; + row["eBay"] = eBay; + row["RRC"] = RRC; + row["Others"] = Others; + row["NBO"] = NBO; + row["Pod"] = pod1; + row["Account"] = account_B2C_SG; + row["Date"] = orderDateYearMonthDay; + row["Month"] = orderDateMonthOfYear; + row["MonthName"] = orderDateMonthName; + row["Today"] = DateDay; + } + if (salesChannelEnumId == "B2C_UK_SALES_CHANNEL") + { + row["SalesChannel"] = salesChannelEnumId; + row["orderDateMonthName"] = orderDateMonthName; + row["orderDateDateValue"] = orderDateDateValue; + row["Parcel"] = quantity; + row["GS"] = GS; + row["GMS"] = GMS; + row["GMP"] = GMP; + row["GSP"] = GSP; + row["GP"] = GP; + row["eBay"] = eBay; + row["RRC"] = RRC; + row["Others"] = Others; + row["NBO"] = NBO; + row["Pod"] = pod1; + row["Account"] = account_B2C_UK; + row["Date"] = orderDateYearMonthDay; + row["Month"] = orderDateMonthOfYear; + row["MonthName"] = orderDateMonthName; + row["Today"] = DateDay; + } + if (salesChannelEnumId == "B2C_US_SALES_CHANNEL") + { + row["SalesChannel"] = salesChannelEnumId; + row["orderDateMonthName"] = orderDateMonthName; + row["orderDateDateValue"] = orderDateDateValue; + row["Parcel"] = quantity; + row["GS"] = GS; + row["GMS"] = GMS; + row["GMP"] = GMP; + row["GSP"] = GSP; + row["GP"] = GP; + row["eBay"] = eBay; + row["RRC"] = RRC; + row["Others"] = Others; + row["NBO"] = NBO; + row["Pod"] = pod1; + row["Account"] = account_B2C_US; + row["Date"] = orderDateYearMonthDay; + row["Month"] = orderDateMonthOfYear; + row["MonthName"] = orderDateMonthName; + row["Today"] = DateDay; + } + if (salesChannelEnumId == "B2C_DE_SALES_CHANNEL") + { + row["SalesChannel"] = salesChannelEnumId; + row["orderDateMonthName"] = orderDateMonthName; + row["orderDateDateValue"] = orderDateDateValue; + row["Parcel"] = quantity; + row["GS"] = GS; + row["GMS"] = GMS; + row["GMP"] = GMP; + row["GSP"] = GSP; + row["GP"] = GP; + row["eBay"] = eBay; + row["RRC"] = RRC; + row["Others"] = Others; + row["NBO"] = NBO; + row["Pod"] = pod2; + row["Account"] = account_B2C_DE; + row["Date"] = orderDateYearMonthDay; + row["Month"] = orderDateMonthOfYear; + row["MonthName"] = orderDateMonthName; + row["Today"] = DateDay; + } + if (salesChannelEnumId == "B2C_ES_SALES_CHANNEL") + { + row["SalesChannel"] = salesChannelEnumId; + row["orderDateMonthName"] = orderDateMonthName; + row["orderDateDateValue"] = orderDateDateValue; + row["Parcel"] = quantity; + row["GS"] = GS; + row["GMS"] = GMS; + row["GMP"] = GMP; + row["GSP"] = GSP; + row["GP"] = GP; + row["eBay"] = eBay; + row["RRC"] = RRC; + row["Others"] = Others; + row["NBO"] = NBO; + row["Pod"] = pod2; + row["Account"] = account_B2C_ES; + row["Date"] = orderDateYearMonthDay; + row["Month"] = orderDateMonthOfYear; + row["MonthName"] = orderDateMonthName; + row["Today"] = DateDay; + } + if (salesChannelEnumId == "B2C_FR_SALES_CHANNEL") + { + row["SalesChannel"] = salesChannelEnumId; + row["orderDateMonthName"] = orderDateMonthName; + row["orderDateDateValue"] = orderDateDateValue; + row["Parcel"] = quantity; + row["GS"] = GS; + row["GMS"] = GMS; + row["GMP"] = GMP; + row["GSP"] = GSP; + row["GP"] = GP; + row["eBay"] = eBay; + row["RRC"] = RRC; + row["Others"] = Others; + row["NBO"] = NBO; + row["Pod"] = pod2; + row["Account"] = account_B2C_FR; + row["Date"] = orderDateYearMonthDay; + row["Month"] = orderDateMonthOfYear; + row["MonthName"] = orderDateMonthName; + row["Today"] = DateDay; + } + if (salesChannelEnumId == "B2C_IT_SALES_CHANNEL") + { + row["SalesChannel"] = salesChannelEnumId; + row["orderDateMonthName"] = orderDateMonthName; + row["orderDateDateValue"] = orderDateDateValue; + row["Parcel"] = quantity; + row["GS"] = GS; + row["GMS"] = GMS; + row["GMP"] = GMP; + row["GSP"] = GSP; + row["GP"] = GP; + row["eBay"] = eBay; + row["RRC"] = RRC; + row["Others"] = Others; + row["NBO"] = NBO; + row["Pod"] = pod2; + row["Account"] = account_B2C_IT; + row["Date"] = orderDateYearMonthDay; + row["Month"] = orderDateMonthOfYear; + row["MonthName"] = orderDateMonthName; + row["Today"] = DateDay; + } + + currentRow ++; } return true;]]> @@ -1167,7 +1167,7 @@ classLoader = appContext.get(EngineConstants.APPCONTEXT_CLASSLOADER_KEY); starschemas = null; try { - productStoreId = params["productStoreId"].value; + productStoreId = params["productStoreId"].value; DateDay = params["DateDay"].value; methodContext = new MethodContext(appContext, classLoader, MethodContext.SERVICE); methodContext.putEnv("productStoreId", productStoreId); @@ -1201,242 +1201,242 @@ if (Date_starschemas) }]]> = totalRows) return false; { - Date_starschema = Date_starschemas.get(currentRow); - orderDateDateValue = Date_starschema.getString("orderDateDateValue"); - orderDateDayName = Date_starschema.getString("orderDateDayName"); - orderDateDayOfMonth = Date_starschema.getString("orderDateDayOfMonth"); - orderDateMonthName = Date_starschema.getString("orderDateMonthName"); - orderDateYearName = Date_starschema.getString("orderDateYearName"); - orderDateYearMonthDay = Date_starschema.getString("orderDateYearMonthDay"); - orderDateMonthOfYear = Date_starschema.getString("orderDateMonthOfYear"); - orderDateDescription = Date_starschema.getString("orderDateDescription"); - - quantity = Date_starschema.getString("quantity"); - GS = Date_starschema.getString("GrossSales"); - GMS = Date_starschema.getString("GrossMerchandizeSales"); - GMP = Date_starschema.getString("GrossMerchandizeProfit"); - GSP = Date_starschema.getString("GrossShippingProfit"); - GP = Date_starschema.getString("GrossProfit"); - eBay = Date_starschema.getString("eBay"); - RRC = Date_starschema.getString("RRC"); - Others = Date_starschema.getString("OtherFree"); - NBO = Date_starschema.getString("NBO"); - - salesChannelEnumId = Date_starschema.getString("salesChannelEnumId"); - - if (salesChannelEnumId == "B2C_AU_SALES_CHANNEL") - { - row["SalesChannel"] = salesChannelEnumId; - row["orderDateDayOfMonth"] = orderDateDayOfMonth; - row["orderDateMonthName"] = orderDateMonthName; - row["orderDateYearName"] = orderDateYearName; - row["orderDateDateValue"] = orderDateDateValue; - row["Parcel"] = quantity; - row["GS"] = GS; - row["GMS"] = GMS; - row["GMP"] = GMP; - row["GSP"] = GSP; - row["GP"] = GP; - row["eBay"] = eBay; - row["RRC"] = RRC; - row["Others"] = Others; - row["NBO"] = NBO; - row["NBO"] = NBO; - row["Pod"] = pod1; - row["Account"] = account_B2C_AU; - row["Date"] = orderDateYearMonthDay; - } - if (salesChannelEnumId == "B2C_CA_SALES_CHANNEL") - { - row["SalesChannel"] = salesChannelEnumId; - row["orderDateDayOfMonth"] = orderDateDayOfMonth; - row["orderDateMonthName"] = orderDateMonthName; - row["orderDateYearName"] = orderDateYearName; - row["orderDateDateValue"] = orderDateDateValue; - row["Parcel"] = quantity; - row["GS"] = GS; - row["GMS"] = GMS; - row["GMP"] = GMP; - row["GSP"] = GSP; - row["GP"] = GP; - row["eBay"] = eBay; - row["RRC"] = RRC; - row["Others"] = Others; - row["NBO"] = NBO; - row["Pod"] = pod1; - row["Account"] = account_B2C_CA; - row["Date"] = orderDateYearMonthDay; - } - if (salesChannelEnumId == "B2C_IE_SALES_CHANNEL") - { - row["SalesChannel"] = salesChannelEnumId; - row["orderDateDayOfMonth"] = orderDateDayOfMonth; - row["orderDateMonthName"] = orderDateMonthName; - row["orderDateYearName"] = orderDateYearName; - row["orderDateDateValue"] = orderDateDateValue; - row["Parcel"] = quantity; - row["GS"] = GS; - row["GMS"] = GMS; - row["GMP"] = GMP; - row["GSP"] = GSP; - row["GP"] = GP; - row["eBay"] = eBay; - row["RRC"] = RRC; - row["Others"] = Others; - row["NBO"] = NBO; - row["Pod"] = pod1; - row["Account"] = account_B2C_IE; - row["Date"] = orderDateYearMonthDay; - } - if (salesChannelEnumId == "B2C_SG_SALES_CHANNEL") - { - row["SalesChannel"] = salesChannelEnumId; - row["orderDateDayOfMonth"] = orderDateDayOfMonth; - row["orderDateMonthName"] = orderDateMonthName; - row["orderDateYearName"] = orderDateYearName; - row["orderDateDateValue"] = orderDateDateValue; - row["Parcel"] = quantity; - row["GS"] = GS; - row["GMS"] = GMS; - row["GMP"] = GMP; - row["GSP"] = GSP; - row["GP"] = GP; - row["eBay"] = eBay; - row["RRC"] = RRC; - row["Others"] = Others; - row["NBO"] = NBO; - row["Pod"] = pod1; - row["Account"] = account_B2C_SG; - row["Date"] = orderDateYearMonthDay; - } - if (salesChannelEnumId == "B2C_UK_SALES_CHANNEL") - { - row["SalesChannel"] = salesChannelEnumId; - row["orderDateDayOfMonth"] = orderDateDayOfMonth; - row["orderDateMonthName"] = orderDateMonthName; - row["orderDateYearName"] = orderDateYearName; - row["orderDateDateValue"] = orderDateDateValue; - row["Parcel"] = quantity; - row["GS"] = GS; - row["GMS"] = GMS; - row["GMP"] = GMP; - row["GSP"] = GSP; - row["GP"] = GP; - row["eBay"] = eBay; - row["RRC"] = RRC; - row["Others"] = Others; - row["NBO"] = NBO; - row["Pod"] = pod1; - row["Account"] = account_B2C_UK; - row["Date"] = orderDateYearMonthDay; - } - if (salesChannelEnumId == "B2C_US_SALES_CHANNEL") - { - row["SalesChannel"] = salesChannelEnumId; - row["orderDateDayOfMonth"] = orderDateDayOfMonth; - row["orderDateMonthName"] = orderDateMonthName; - row["orderDateYearName"] = orderDateYearName; - row["orderDateDateValue"] = orderDateDateValue; - row["Parcel"] = quantity; - row["GS"] = GS; - row["GMS"] = GMS; - row["GMP"] = GMP; - row["GSP"] = GSP; - row["GP"] = GP; - row["eBay"] = eBay; - row["RRC"] = RRC; - row["Others"] = Others; - row["NBO"] = NBO; - row["Pod"] = pod1; - row["Account"] = account_B2C_US; - row["Date"] = orderDateYearMonthDay; - } - if (salesChannelEnumId == "B2C_DE_SALES_CHANNEL") - { - row["SalesChannel"] = salesChannelEnumId; - row["orderDateDayOfMonth"] = orderDateDayOfMonth; - row["orderDateMonthName"] = orderDateMonthName; - row["orderDateYearName"] = orderDateYearName; - row["orderDateDateValue"] = orderDateDateValue; - row["Parcel"] = quantity; - row["GS"] = GS; - row["GMS"] = GMS; - row["GMP"] = GMP; - row["GSP"] = GSP; - row["GP"] = GP; - row["eBay"] = eBay; - row["RRC"] = RRC; - row["Others"] = Others; - row["NBO"] = NBO; - row["Pod"] = pod2; - row["Account"] = account_B2C_DE; - row["Date"] = orderDateYearMonthDay; - } - if (salesChannelEnumId == "B2C_ES_SALES_CHANNEL") - { - row["SalesChannel"] = salesChannelEnumId; - row["orderDateDayOfMonth"] = orderDateDayOfMonth; - row["orderDateMonthName"] = orderDateMonthName; - row["orderDateYearName"] = orderDateYearName; - row["orderDateDateValue"] = orderDateDateValue; - row["Parcel"] = quantity; - row["GS"] = GS; - row["GMS"] = GMS; - row["GMP"] = GMP; - row["GSP"] = GSP; - row["GP"] = GP; - row["eBay"] = eBay; - row["RRC"] = RRC; - row["Others"] = Others; - row["NBO"] = NBO; - row["Pod"] = pod2; - row["Account"] = account_B2C_ES; - row["Date"] = orderDateYearMonthDay; - } - if (salesChannelEnumId == "B2C_FR_SALES_CHANNEL") - { - row["SalesChannel"] = salesChannelEnumId; - row["orderDateDayOfMonth"] = orderDateDayOfMonth; - row["orderDateMonthName"] = orderDateMonthName; - row["orderDateYearName"] = orderDateYearName; - row["orderDateDateValue"] = orderDateDateValue; - row["Parcel"] = quantity; - row["GS"] = GS; - row["GMS"] = GMS; - row["GMP"] = GMP; - row["GSP"] = GSP; - row["GP"] = GP; - row["eBay"] = eBay; - row["RRC"] = RRC; - row["Others"] = Others; - row["NBO"] = NBO; - row["Pod"] = pod2; - row["Account"] = account_B2C_FR; - row["Date"] = orderDateYearMonthDay; - } - if (salesChannelEnumId == "B2C_IT_SALES_CHANNEL") - { - row["SalesChannel"] = salesChannelEnumId; - row["orderDateDayOfMonth"] = orderDateDayOfMonth; - row["orderDateMonthName"] = orderDateMonthName; - row["orderDateYearName"] = orderDateYearName; - row["orderDateDateValue"] = orderDateDateValue; - row["Parcel"] = quantity; - row["GS"] = GS; - row["GMS"] = GMS; - row["GMP"] = GMP; - row["GSP"] = GSP; - row["GP"] = GP; - row["eBay"] = eBay; - row["RRC"] = RRC; - row["Others"] = Others; - row["NBO"] = NBO; - row["Pod"] = pod2; - row["Account"] = account_B2C_IT; - row["Date"] = orderDateYearMonthDay; - } - - currentRow ++; + Date_starschema = Date_starschemas.get(currentRow); + orderDateDateValue = Date_starschema.getString("orderDateDateValue"); + orderDateDayName = Date_starschema.getString("orderDateDayName"); + orderDateDayOfMonth = Date_starschema.getString("orderDateDayOfMonth"); + orderDateMonthName = Date_starschema.getString("orderDateMonthName"); + orderDateYearName = Date_starschema.getString("orderDateYearName"); + orderDateYearMonthDay = Date_starschema.getString("orderDateYearMonthDay"); + orderDateMonthOfYear = Date_starschema.getString("orderDateMonthOfYear"); + orderDateDescription = Date_starschema.getString("orderDateDescription"); + + quantity = Date_starschema.getString("quantity"); + GS = Date_starschema.getString("GrossSales"); + GMS = Date_starschema.getString("GrossMerchandizeSales"); + GMP = Date_starschema.getString("GrossMerchandizeProfit"); + GSP = Date_starschema.getString("GrossShippingProfit"); + GP = Date_starschema.getString("GrossProfit"); + eBay = Date_starschema.getString("eBay"); + RRC = Date_starschema.getString("RRC"); + Others = Date_starschema.getString("OtherFree"); + NBO = Date_starschema.getString("NBO"); + + salesChannelEnumId = Date_starschema.getString("salesChannelEnumId"); + + if (salesChannelEnumId == "B2C_AU_SALES_CHANNEL") + { + row["SalesChannel"] = salesChannelEnumId; + row["orderDateDayOfMonth"] = orderDateDayOfMonth; + row["orderDateMonthName"] = orderDateMonthName; + row["orderDateYearName"] = orderDateYearName; + row["orderDateDateValue"] = orderDateDateValue; + row["Parcel"] = quantity; + row["GS"] = GS; + row["GMS"] = GMS; + row["GMP"] = GMP; + row["GSP"] = GSP; + row["GP"] = GP; + row["eBay"] = eBay; + row["RRC"] = RRC; + row["Others"] = Others; + row["NBO"] = NBO; + row["NBO"] = NBO; + row["Pod"] = pod1; + row["Account"] = account_B2C_AU; + row["Date"] = orderDateYearMonthDay; + } + if (salesChannelEnumId == "B2C_CA_SALES_CHANNEL") + { + row["SalesChannel"] = salesChannelEnumId; + row["orderDateDayOfMonth"] = orderDateDayOfMonth; + row["orderDateMonthName"] = orderDateMonthName; + row["orderDateYearName"] = orderDateYearName; + row["orderDateDateValue"] = orderDateDateValue; + row["Parcel"] = quantity; + row["GS"] = GS; + row["GMS"] = GMS; + row["GMP"] = GMP; + row["GSP"] = GSP; + row["GP"] = GP; + row["eBay"] = eBay; + row["RRC"] = RRC; + row["Others"] = Others; + row["NBO"] = NBO; + row["Pod"] = pod1; + row["Account"] = account_B2C_CA; + row["Date"] = orderDateYearMonthDay; + } + if (salesChannelEnumId == "B2C_IE_SALES_CHANNEL") + { + row["SalesChannel"] = salesChannelEnumId; + row["orderDateDayOfMonth"] = orderDateDayOfMonth; + row["orderDateMonthName"] = orderDateMonthName; + row["orderDateYearName"] = orderDateYearName; + row["orderDateDateValue"] = orderDateDateValue; + row["Parcel"] = quantity; + row["GS"] = GS; + row["GMS"] = GMS; + row["GMP"] = GMP; + row["GSP"] = GSP; + row["GP"] = GP; + row["eBay"] = eBay; + row["RRC"] = RRC; + row["Others"] = Others; + row["NBO"] = NBO; + row["Pod"] = pod1; + row["Account"] = account_B2C_IE; + row["Date"] = orderDateYearMonthDay; + } + if (salesChannelEnumId == "B2C_SG_SALES_CHANNEL") + { + row["SalesChannel"] = salesChannelEnumId; + row["orderDateDayOfMonth"] = orderDateDayOfMonth; + row["orderDateMonthName"] = orderDateMonthName; + row["orderDateYearName"] = orderDateYearName; + row["orderDateDateValue"] = orderDateDateValue; + row["Parcel"] = quantity; + row["GS"] = GS; + row["GMS"] = GMS; + row["GMP"] = GMP; + row["GSP"] = GSP; + row["GP"] = GP; + row["eBay"] = eBay; + row["RRC"] = RRC; + row["Others"] = Others; + row["NBO"] = NBO; + row["Pod"] = pod1; + row["Account"] = account_B2C_SG; + row["Date"] = orderDateYearMonthDay; + } + if (salesChannelEnumId == "B2C_UK_SALES_CHANNEL") + { + row["SalesChannel"] = salesChannelEnumId; + row["orderDateDayOfMonth"] = orderDateDayOfMonth; + row["orderDateMonthName"] = orderDateMonthName; + row["orderDateYearName"] = orderDateYearName; + row["orderDateDateValue"] = orderDateDateValue; + row["Parcel"] = quantity; + row["GS"] = GS; + row["GMS"] = GMS; + row["GMP"] = GMP; + row["GSP"] = GSP; + row["GP"] = GP; + row["eBay"] = eBay; + row["RRC"] = RRC; + row["Others"] = Others; + row["NBO"] = NBO; + row["Pod"] = pod1; + row["Account"] = account_B2C_UK; + row["Date"] = orderDateYearMonthDay; + } + if (salesChannelEnumId == "B2C_US_SALES_CHANNEL") + { + row["SalesChannel"] = salesChannelEnumId; + row["orderDateDayOfMonth"] = orderDateDayOfMonth; + row["orderDateMonthName"] = orderDateMonthName; + row["orderDateYearName"] = orderDateYearName; + row["orderDateDateValue"] = orderDateDateValue; + row["Parcel"] = quantity; + row["GS"] = GS; + row["GMS"] = GMS; + row["GMP"] = GMP; + row["GSP"] = GSP; + row["GP"] = GP; + row["eBay"] = eBay; + row["RRC"] = RRC; + row["Others"] = Others; + row["NBO"] = NBO; + row["Pod"] = pod1; + row["Account"] = account_B2C_US; + row["Date"] = orderDateYearMonthDay; + } + if (salesChannelEnumId == "B2C_DE_SALES_CHANNEL") + { + row["SalesChannel"] = salesChannelEnumId; + row["orderDateDayOfMonth"] = orderDateDayOfMonth; + row["orderDateMonthName"] = orderDateMonthName; + row["orderDateYearName"] = orderDateYearName; + row["orderDateDateValue"] = orderDateDateValue; + row["Parcel"] = quantity; + row["GS"] = GS; + row["GMS"] = GMS; + row["GMP"] = GMP; + row["GSP"] = GSP; + row["GP"] = GP; + row["eBay"] = eBay; + row["RRC"] = RRC; + row["Others"] = Others; + row["NBO"] = NBO; + row["Pod"] = pod2; + row["Account"] = account_B2C_DE; + row["Date"] = orderDateYearMonthDay; + } + if (salesChannelEnumId == "B2C_ES_SALES_CHANNEL") + { + row["SalesChannel"] = salesChannelEnumId; + row["orderDateDayOfMonth"] = orderDateDayOfMonth; + row["orderDateMonthName"] = orderDateMonthName; + row["orderDateYearName"] = orderDateYearName; + row["orderDateDateValue"] = orderDateDateValue; + row["Parcel"] = quantity; + row["GS"] = GS; + row["GMS"] = GMS; + row["GMP"] = GMP; + row["GSP"] = GSP; + row["GP"] = GP; + row["eBay"] = eBay; + row["RRC"] = RRC; + row["Others"] = Others; + row["NBO"] = NBO; + row["Pod"] = pod2; + row["Account"] = account_B2C_ES; + row["Date"] = orderDateYearMonthDay; + } + if (salesChannelEnumId == "B2C_FR_SALES_CHANNEL") + { + row["SalesChannel"] = salesChannelEnumId; + row["orderDateDayOfMonth"] = orderDateDayOfMonth; + row["orderDateMonthName"] = orderDateMonthName; + row["orderDateYearName"] = orderDateYearName; + row["orderDateDateValue"] = orderDateDateValue; + row["Parcel"] = quantity; + row["GS"] = GS; + row["GMS"] = GMS; + row["GMP"] = GMP; + row["GSP"] = GSP; + row["GP"] = GP; + row["eBay"] = eBay; + row["RRC"] = RRC; + row["Others"] = Others; + row["NBO"] = NBO; + row["Pod"] = pod2; + row["Account"] = account_B2C_FR; + row["Date"] = orderDateYearMonthDay; + } + if (salesChannelEnumId == "B2C_IT_SALES_CHANNEL") + { + row["SalesChannel"] = salesChannelEnumId; + row["orderDateDayOfMonth"] = orderDateDayOfMonth; + row["orderDateMonthName"] = orderDateMonthName; + row["orderDateYearName"] = orderDateYearName; + row["orderDateDateValue"] = orderDateDateValue; + row["Parcel"] = quantity; + row["GS"] = GS; + row["GMS"] = GMS; + row["GMP"] = GMP; + row["GSP"] = GSP; + row["GP"] = GP; + row["eBay"] = eBay; + row["RRC"] = RRC; + row["Others"] = Others; + row["NBO"] = NBO; + row["Pod"] = pod2; + row["Account"] = account_B2C_IT; + row["Date"] = orderDateYearMonthDay; + } + + currentRow ++; } return true;]]> @@ -1559,7 +1559,7 @@ classLoader = appContext.get(EngineConstants.APPCONTEXT_CLASSLOADER_KEY); starschemas = null; try { - productStoreId = params["productStoreId"].value; + productStoreId = params["productStoreId"].value; DateMonth = params["DateMonth"].value; DateYear = params["DateYear"].value; methodContext = new MethodContext(appContext, classLoader, MethodContext.SERVICE); @@ -1595,106 +1595,106 @@ if (starschemas) }]]> = totalRows) return false; { - starschema = starschemas.get(currentRow); + starschema = starschemas.get(currentRow); - salesChannelEnumId = starschema.getString("salesChannelEnumId"); - orderDateMonthName = starschema.getString("orderDateMonthName"); - orderDateYearName = starschema.getString("orderDateYearName"); - NBO = starschema.getString("NBO"); - CountDate = starschema.getString("CountDate"); - - if (salesChannelEnumId == "B2C_AU_SALES_CHANNEL") - { - row["SalesChannel"] = salesChannelEnumId; - row["orderDateMonthName"] = orderDateMonthName; - row["Pod"] = pod1; - row["Account"] = account_B2C_AU; - row["NBO"] = NBO; - row["CountDate"] = CountDate; - } - if (salesChannelEnumId == "B2C_CA_SALES_CHANNEL") - { - row["SalesChannel"] = salesChannelEnumId; - row["orderDateMonthName"] = orderDateMonthName; - row["Pod"] = pod1; - row["Account"] = account_B2C_CA; - row["NBO"] = NBO; - row["CountDate"] = CountDate; - } - if (salesChannelEnumId == "B2C_IE_SALES_CHANNEL") - { - row["SalesChannel"] = salesChannelEnumId; - row["orderDateMonthName"] = orderDateMonthName; - row["Pod"] = pod1; - row["Account"] = account_B2C_IE; - row["NBO"] = NBO; - row["CountDate"] = CountDate; - } - if (salesChannelEnumId == "B2C_SG_SALES_CHANNEL") - { - row["SalesChannel"] = salesChannelEnumId; - row["orderDateMonthName"] = orderDateMonthName; - row["Pod"] = pod1; - row["Account"] = account_B2C_SG; - row["NBO"] = NBO; - row["CountDate"] = CountDate; - } - if (salesChannelEnumId == "B2C_UK_SALES_CHANNEL") - { - row["SalesChannel"] = salesChannelEnumId; - row["orderDateMonthName"] = orderDateMonthName; - row["Pod"] = pod1; - row["Account"] = account_B2C_UK; - row["NBO"] = NBO; - row["CountDate"] = CountDate; - } - if (salesChannelEnumId == "B2C_US_SALES_CHANNEL") - { - row["SalesChannel"] = salesChannelEnumId; - row["orderDateMonthName"] = orderDateMonthName; - row["Pod"] = pod1; - row["Account"] = account_B2C_US; - row["NBO"] = NBO; - row["CountDate"] = CountDate; - } - if (salesChannelEnumId == "B2C_DE_SALES_CHANNEL") - { - row["SalesChannel"] = salesChannelEnumId; - row["orderDateMonthName"] = orderDateMonthName; - row["Pod"] = pod2; - row["Account"] = account_B2C_DE; - row["NBO"] = NBO; - row["CountDate"] = CountDate; - } - if (salesChannelEnumId == "B2C_ES_SALES_CHANNEL") - { - row["SalesChannel"] = salesChannelEnumId; - row["orderDateMonthName"] = orderDateMonthName; - row["Pod"] = pod2; - row["Account"] = account_B2C_ES; - row["NBO"] = NBO; - row["CountDate"] = CountDate; - } - if (salesChannelEnumId == "B2C_FR_SALES_CHANNEL") - { - row["SalesChannel"] = salesChannelEnumId; - row["orderDateMonthName"] = orderDateMonthName; - row["Pod"] = pod2; - row["Account"] = account_B2C_FR; - row["NBO"] = NBO; - row["CountDate"] = CountDate; - } - if (salesChannelEnumId == "B2C_IT_SALES_CHANNEL") - { - row["SalesChannel"] = salesChannelEnumId; - row["orderDateMonthName"] = orderDateMonthName; - row["Pod"] = pod2; - row["Account"] = account_B2C_IT; - row["NBO"] = NBO; - row["CountDate"] = CountDate; - } - - currentRow ++; + salesChannelEnumId = starschema.getString("salesChannelEnumId"); + orderDateMonthName = starschema.getString("orderDateMonthName"); + orderDateYearName = starschema.getString("orderDateYearName"); + NBO = starschema.getString("NBO"); + CountDate = starschema.getString("CountDate"); + + if (salesChannelEnumId == "B2C_AU_SALES_CHANNEL") + { + row["SalesChannel"] = salesChannelEnumId; + row["orderDateMonthName"] = orderDateMonthName; + row["Pod"] = pod1; + row["Account"] = account_B2C_AU; + row["NBO"] = NBO; + row["CountDate"] = CountDate; + } + if (salesChannelEnumId == "B2C_CA_SALES_CHANNEL") + { + row["SalesChannel"] = salesChannelEnumId; + row["orderDateMonthName"] = orderDateMonthName; + row["Pod"] = pod1; + row["Account"] = account_B2C_CA; + row["NBO"] = NBO; + row["CountDate"] = CountDate; + } + if (salesChannelEnumId == "B2C_IE_SALES_CHANNEL") + { + row["SalesChannel"] = salesChannelEnumId; + row["orderDateMonthName"] = orderDateMonthName; + row["Pod"] = pod1; + row["Account"] = account_B2C_IE; + row["NBO"] = NBO; + row["CountDate"] = CountDate; + } + if (salesChannelEnumId == "B2C_SG_SALES_CHANNEL") + { + row["SalesChannel"] = salesChannelEnumId; + row["orderDateMonthName"] = orderDateMonthName; + row["Pod"] = pod1; + row["Account"] = account_B2C_SG; + row["NBO"] = NBO; + row["CountDate"] = CountDate; + } + if (salesChannelEnumId == "B2C_UK_SALES_CHANNEL") + { + row["SalesChannel"] = salesChannelEnumId; + row["orderDateMonthName"] = orderDateMonthName; + row["Pod"] = pod1; + row["Account"] = account_B2C_UK; + row["NBO"] = NBO; + row["CountDate"] = CountDate; + } + if (salesChannelEnumId == "B2C_US_SALES_CHANNEL") + { + row["SalesChannel"] = salesChannelEnumId; + row["orderDateMonthName"] = orderDateMonthName; + row["Pod"] = pod1; + row["Account"] = account_B2C_US; + row["NBO"] = NBO; + row["CountDate"] = CountDate; + } + if (salesChannelEnumId == "B2C_DE_SALES_CHANNEL") + { + row["SalesChannel"] = salesChannelEnumId; + row["orderDateMonthName"] = orderDateMonthName; + row["Pod"] = pod2; + row["Account"] = account_B2C_DE; + row["NBO"] = NBO; + row["CountDate"] = CountDate; + } + if (salesChannelEnumId == "B2C_ES_SALES_CHANNEL") + { + row["SalesChannel"] = salesChannelEnumId; + row["orderDateMonthName"] = orderDateMonthName; + row["Pod"] = pod2; + row["Account"] = account_B2C_ES; + row["NBO"] = NBO; + row["CountDate"] = CountDate; + } + if (salesChannelEnumId == "B2C_FR_SALES_CHANNEL") + { + row["SalesChannel"] = salesChannelEnumId; + row["orderDateMonthName"] = orderDateMonthName; + row["Pod"] = pod2; + row["Account"] = account_B2C_FR; + row["NBO"] = NBO; + row["CountDate"] = CountDate; + } + if (salesChannelEnumId == "B2C_IT_SALES_CHANNEL") + { + row["SalesChannel"] = salesChannelEnumId; + row["orderDateMonthName"] = orderDateMonthName; + row["Pod"] = pod2; + row["Account"] = account_B2C_IT; + row["NBO"] = NBO; + row["CountDate"] = CountDate; + } + + currentRow ++; } return true;]]> @@ -4299,11 +4299,11 @@ return true;]]> Show_Daily if(dimension["Account"]["Daily"]==1) { - "Daily Avg in "+dimension["Account"]["Daily"]["orderDateMonthName"].substring(0,3) + "Daily Avg in "+dimension["Account"]["Daily"]["orderDateMonthName"].substring(0,3) } else if(dimension["Account"]["Daily"]==2) { - "Daily Avg in "+dimension["Account"]["Daily"]["orderDateMonthName"].substring(0,3) + "Daily Avg in "+dimension["Account"]["Daily"]["orderDateMonthName"].substring(0,3) } string diff --git a/applications/order/webapp/ordermgr/reports/OrderDiscountCodeReport.rptdesign b/applications/order/webapp/ordermgr/reports/OrderDiscountCodeReport.rptdesign index 430160b09f..d46084bd47 100644 --- a/applications/order/webapp/ordermgr/reports/OrderDiscountCodeReport.rptdesign +++ b/applications/order/webapp/ordermgr/reports/OrderDiscountCodeReport.rptdesign @@ -118,7 +118,7 @@ try { input = FastMap.newInstance(); inputFields = FastMap.newInstance(); if(params!=null){ - inputFields.put("noConditionFind", "Y"); + inputFields.put("noConditionFind", "Y"); } input.put("userLogin",userLogin); @@ -134,16 +134,16 @@ try { }]]> diff --git a/applications/order/webapp/ordermgr/reports/OrdersByChannel.rptdesign b/applications/order/webapp/ordermgr/reports/OrdersByChannel.rptdesign index f3ae6c4185..f08fab8074 100644 --- a/applications/order/webapp/ordermgr/reports/OrdersByChannel.rptdesign +++ b/applications/order/webapp/ordermgr/reports/OrdersByChannel.rptdesign @@ -254,10 +254,10 @@ module = "OrdersByChannel.rptdesign";]]> OFBIZ = totalRows - 1) return false; { - starschema = starschemas.get(currentRow); - orderDateDateValue = starschema.getString("orderDateDateValue"); - orderDateDayName = starschema.getString("orderDateDayName"); - orderDateDayOfMonth = starschema.getString("orderDateDayOfMonth"); - orderDateMonthName = starschema.getString("orderDateMonthName"); - orderDateYearName = starschema.getString("orderDateYearName"); - orderDateYearMonthDay = starschema.getString("orderDateYearMonthDay"); - orderDateMonthOfYear = starschema.getString("orderDateMonthOfYear"); - orderDateDescription = starschema.getString("orderDateDescription"); - - WeekOfYear = starschema.getString("orderDateWeekOfYear"); - SKU = starschema.getString("productProductId"); - ProductName = starschema.getString("productInternalName"); - CategoryName = starschema.getString("categoryName"); - QuantitySold = starschema.getString("quantity"); - GS = starschema.getString("GrossSales"); - GMS = starschema.getString("GrossMerchandizeSales"); - GMP = starschema.getString("GrossMerchandizeProfit"); - GSP = starschema.getString("GrossShippingProfit"); - GP = starschema.getString("GrossProfit"); - - salesChannelEnumId = starschema.getString("salesChannelEnumId"); - - row["Week"] = WeekOfYear; - row["SKU"] = SKU; - row["ProductName"] = ProductName; - row["CategoryName"] = CategoryName; - row["QuantitySold"] = QuantitySold; - row["GS"] = GS; - row["GMS"] = GMS; - row["GMP"] = GMP; - row["GSP"] = GSP; - row["GP"] = GP; - - currentRow ++; + starschema = starschemas.get(currentRow); + orderDateDateValue = starschema.getString("orderDateDateValue"); + orderDateDayName = starschema.getString("orderDateDayName"); + orderDateDayOfMonth = starschema.getString("orderDateDayOfMonth"); + orderDateMonthName = starschema.getString("orderDateMonthName"); + orderDateYearName = starschema.getString("orderDateYearName"); + orderDateYearMonthDay = starschema.getString("orderDateYearMonthDay"); + orderDateMonthOfYear = starschema.getString("orderDateMonthOfYear"); + orderDateDescription = starschema.getString("orderDateDescription"); + + WeekOfYear = starschema.getString("orderDateWeekOfYear"); + SKU = starschema.getString("productProductId"); + ProductName = starschema.getString("productInternalName"); + CategoryName = starschema.getString("categoryName"); + QuantitySold = starschema.getString("quantity"); + GS = starschema.getString("GrossSales"); + GMS = starschema.getString("GrossMerchandizeSales"); + GMP = starschema.getString("GrossMerchandizeProfit"); + GSP = starschema.getString("GrossShippingProfit"); + GP = starschema.getString("GrossProfit"); + + salesChannelEnumId = starschema.getString("salesChannelEnumId"); + + row["Week"] = WeekOfYear; + row["SKU"] = SKU; + row["ProductName"] = ProductName; + row["CategoryName"] = CategoryName; + row["QuantitySold"] = QuantitySold; + row["GS"] = GS; + row["GMS"] = GMS; + row["GMP"] = GMP; + row["GSP"] = GSP; + row["GP"] = GP; + + currentRow ++; } return true;]]> diff --git a/applications/order/webapp/ordermgr/reports/SalesReport.rptdesign b/applications/order/webapp/ordermgr/reports/SalesReport.rptdesign index 2a399308d4..468eb8f958 100644 --- a/applications/order/webapp/ordermgr/reports/SalesReport.rptdesign +++ b/applications/order/webapp/ordermgr/reports/SalesReport.rptdesign @@ -468,408 +468,408 @@ if (starschemas) }]]> = totalRows - 1) return false; { - starschema = starschemas.get(currentRow); - orderDateDescription = starschema.getString("orderDateDescription"); - orderDateDayName = starschema.getString("orderDateDayName"); - orderDateDayOfMonth = starschema.getString("orderDateDayOfMonth"); - orderDateMonthName = starschema.getString("orderDateMonthName"); - orderDateYearName = starschema.getString("orderDateYearName"); - orderDateWeekOfYear = starschema.getString("orderDateWeekOfYear"); - orderDateYearMonthDay = starschema.getString("orderDateYearMonthDay"); - orderDateMonthOfYear = starschema.getString("orderDateMonthOfYear"); - - quantity = starschema.getString("quantity"); - GrossSales = starschema.getString("GrossSales"); - GrossMerchandizeSales = starschema.getString("GrossMerchandizeSales"); - GrossMerchandizeProfit = starschema.getString("GrossMerchandizeProfit"); - GrossShippingProfit = starschema.getString("GrossShippingProfit"); - GrossProfit = starschema.getString("GrossProfit"); - - salesChannelEnumId = starschema.getString("salesChannelEnumId"); - saleChannel = starschema.getString("saleChannel"); - - if (salesChannelEnumId == "B2C_AU_SALES_CHANNEL") - { - row["AccountType"] = account_type1; - row["Pod"] = pod1; - row["Account"] = account_B2C_AU; - row["SalesChannel"] = salesChannelEnumId; - row["orderDateYearName"] = orderDateYearName; - row["orderDateMonthOfYear"] = orderDateMonthOfYear; - row["orderDateMonthName"] = orderDateMonthName; - row["orderDateWeekOfYear"] = orderDateWeekOfYear; - row["orderDateDayName"] = orderDateDayName; - row["orderDateDescription"] = orderDateDescription; - row["quantity"] = quantity; - row["GrossSales"] = GrossSales; - row["GrossMerchandizeSales"] = GrossMerchandizeSales; - row["GrossMerchandizeProfit"] = GrossMerchandizeProfit; - row["GrossShippingProfit"] = GrossShippingProfit; - row["GrossProfit"] = GrossProfit; - } - if (salesChannelEnumId == "B2C_CA_SALES_CHANNEL") - { - row["AccountType"] = account_type1; - row["Pod"] = pod1; - row["Account"] = account_B2C_CA; - row["SalesChannel"] = salesChannelEnumId; - row["orderDateYearName"] = orderDateYearName; - row["orderDateMonthOfYear"] = orderDateMonthOfYear; - row["orderDateMonthName"] = orderDateMonthName; - row["orderDateWeekOfYear"] = orderDateWeekOfYear; - row["orderDateDayName"] = orderDateDayName; - row["orderDateDescription"] = orderDateDescription; - row["quantity"] = quantity; - row["GrossSales"] = GrossSales; - row["GrossMerchandizeSales"] = GrossMerchandizeSales; - row["GrossMerchandizeProfit"] = GrossMerchandizeProfit; - row["GrossShippingProfit"] = GrossShippingProfit; - row["GrossProfit"] = GrossProfit; - } - if (salesChannelEnumId == "B2C_IE_SALES_CHANNEL") - { - row["AccountType"] = account_type1; - row["Pod"] = pod1; - row["Account"] = account_B2C_IE; - row["SalesChannel"] = salesChannelEnumId; - row["orderDateYearName"] = orderDateYearName; - row["orderDateMonthOfYear"] = orderDateMonthOfYear; - row["orderDateMonthName"] = orderDateMonthName; - row["orderDateWeekOfYear"] = orderDateWeekOfYear; - row["orderDateDayName"] = orderDateDayName; - row["orderDateDescription"] = orderDateDescription; - row["quantity"] = quantity; - row["GrossSales"] = GrossSales; - row["GrossMerchandizeSales"] = GrossMerchandizeSales; - row["GrossMerchandizeProfit"] = GrossMerchandizeProfit; - row["GrossShippingProfit"] = GrossShippingProfit; - row["GrossProfit"] = GrossProfit; - } - if (salesChannelEnumId == "B2C_SG_SALES_CHANNEL") - { - row["AccountType"] = account_type1; - row["Pod"] = pod1; - row["Account"] = account_B2C_SG; - row["SalesChannel"] = salesChannelEnumId; - row["orderDateYearName"] = orderDateYearName; - row["orderDateMonthOfYear"] = orderDateMonthOfYear; - row["orderDateMonthName"] = orderDateMonthName; - row["orderDateWeekOfYear"] = orderDateWeekOfYear; - row["orderDateDayName"] = orderDateDayName; - row["orderDateDescription"] = orderDateDescription; - row["quantity"] = quantity; - row["GrossSales"] = GrossSales; - row["GrossMerchandizeSales"] = GrossMerchandizeSales; - row["GrossMerchandizeProfit"] = GrossMerchandizeProfit; - row["GrossShippingProfit"] = GrossShippingProfit; - row["GrossProfit"] = GrossProfit; - } - if (salesChannelEnumId == "B2C_UK_SALES_CHANNEL") - { - row["AccountType"] = account_type1; - row["Pod"] = pod1; - row["Account"] = account_B2C_UK; - row["SalesChannel"] = salesChannelEnumId; - row["orderDateYearName"] = orderDateYearName; - row["orderDateMonthOfYear"] = orderDateMonthOfYear; - row["orderDateMonthName"] = orderDateMonthName; - row["orderDateWeekOfYear"] = orderDateWeekOfYear; - row["orderDateDayName"] = orderDateDayName; - row["orderDateDescription"] = orderDateDescription; - row["quantity"] = quantity; - row["GrossSales"] = GrossSales; - row["GrossMerchandizeSales"] = GrossMerchandizeSales; - row["GrossMerchandizeProfit"] = GrossMerchandizeProfit; - row["GrossShippingProfit"] = GrossShippingProfit; - row["GrossProfit"] = GrossProfit; - } - if (salesChannelEnumId == "B2C_US_SALES_CHANNEL") - { - row["AccountType"] = account_type1; - row["Pod"] = pod1; - row["Account"] = account_B2C_US; - row["SalesChannel"] = salesChannelEnumId; - row["orderDateYearName"] = orderDateYearName; - row["orderDateMonthOfYear"] = orderDateMonthOfYear; - row["orderDateMonthName"] = orderDateMonthName; - row["orderDateWeekOfYear"] = orderDateWeekOfYear; - row["orderDateDayName"] = orderDateDayName; - row["orderDateDescription"] = orderDateDescription; - row["quantity"] = quantity; - row["GrossSales"] = GrossSales; - row["GrossMerchandizeSales"] = GrossMerchandizeSales; - row["GrossMerchandizeProfit"] = GrossMerchandizeProfit; - row["GrossShippingProfit"] = GrossShippingProfit; - row["GrossProfit"] = GrossProfit; - } - if (salesChannelEnumId == "B2C_DE_SALES_CHANNEL") - { - row["AccountType"] = account_type1; - row["Pod"] = pod2; - row["Account"] = account_B2C_DE; - row["SalesChannel"] = salesChannelEnumId; - row["orderDateYearName"] = orderDateYearName; - row["orderDateMonthOfYear"] = orderDateMonthOfYear; - row["orderDateMonthName"] = orderDateMonthName; - row["orderDateWeekOfYear"] = orderDateWeekOfYear; - row["orderDateDayName"] = orderDateDayName; - row["orderDateDescription"] = orderDateDescription; - row["quantity"] = quantity; - row["GrossSales"] = GrossSales; - row["GrossMerchandizeSales"] = GrossMerchandizeSales; - row["GrossMerchandizeProfit"] = GrossMerchandizeProfit; - row["GrossShippingProfit"] = GrossShippingProfit; - row["GrossProfit"] = GrossProfit; - } - if (salesChannelEnumId == "B2C_ES_SALES_CHANNEL") - { - row["AccountType"] = account_type1; - row["Pod"] = pod2; - row["Account"] = account_B2C_ES; - row["SalesChannel"] = salesChannelEnumId; - row["orderDateYearName"] = orderDateYearName; - row["orderDateMonthOfYear"] = orderDateMonthOfYear; - row["orderDateMonthName"] = orderDateMonthName; - row["orderDateWeekOfYear"] = orderDateWeekOfYear; - row["orderDateDayName"] = orderDateDayName; - row["orderDateDescription"] = orderDateDescription; - row["quantity"] = quantity; - row["GrossSales"] = GrossSales; - row["GrossMerchandizeSales"] = GrossMerchandizeSales; - row["GrossMerchandizeProfit"] = GrossMerchandizeProfit; - row["GrossShippingProfit"] = GrossShippingProfit; - row["GrossProfit"] = GrossProfit; - } - if (salesChannelEnumId == "B2C_FR_SALES_CHANNEL") - { - row["AccountType"] = account_type1; - row["Pod"] = pod2; - row["Account"] = account_B2C_FR; - row["SalesChannel"] = salesChannelEnumId; - row["orderDateYearName"] = orderDateYearName; - row["orderDateMonthOfYear"] = orderDateMonthOfYear; - row["orderDateMonthName"] = orderDateMonthName; - row["orderDateWeekOfYear"] = orderDateWeekOfYear; - row["orderDateDayName"] = orderDateDayName; - row["orderDateDescription"] = orderDateDescription; - row["quantity"] = quantity; - row["GrossSales"] = GrossSales; - row["GrossMerchandizeSales"] = GrossMerchandizeSales; - row["GrossMerchandizeProfit"] = GrossMerchandizeProfit; - row["GrossShippingProfit"] = GrossShippingProfit; - row["GrossProfit"] = GrossProfit; - } - if (salesChannelEnumId == "B2C_IT_SALES_CHANNEL") - { - row["AccountType"] = account_type1; - row["Pod"] = pod2; - row["Account"] = account_B2C_IT; - row["SalesChannel"] = salesChannelEnumId; - row["orderDateYearName"] = orderDateYearName; - row["orderDateMonthOfYear"] = orderDateMonthOfYear; - row["orderDateMonthName"] = orderDateMonthName; - row["orderDateWeekOfYear"] = orderDateWeekOfYear; - row["orderDateDayName"] = orderDateDayName; - row["orderDateDescription"] = orderDateDescription; - row["quantity"] = quantity; - row["GrossSales"] = GrossSales; - row["GrossMerchandizeSales"] = GrossMerchandizeSales; - row["GrossMerchandizeProfit"] = GrossMerchandizeProfit; - row["GrossShippingProfit"] = GrossShippingProfit; - row["GrossProfit"] = GrossProfit; - } - if (salesChannelEnumId == "B2B_AU_SALES_CHANNEL") - { - row["AccountType"] = account_type2; - row["Pod"] = pod1; - row["Account"] = account_B2B_AU; - row["SalesChannel"] = salesChannelEnumId; - row["orderDateYearName"] = orderDateYearName; - row["orderDateMonthOfYear"] = orderDateMonthOfYear; - row["orderDateMonthName"] = orderDateMonthName; - row["orderDateWeekOfYear"] = orderDateWeekOfYear; - row["orderDateDayName"] = orderDateDayName; - row["orderDateDescription"] = orderDateDescription; - row["quantity"] = quantity; - row["GrossSales"] = GrossSales; - row["GrossMerchandizeSales"] = GrossMerchandizeSales; - row["GrossMerchandizeProfit"] = GrossMerchandizeProfit; - row["GrossShippingProfit"] = GrossShippingProfit; - row["GrossProfit"] = GrossProfit; - } - if (salesChannelEnumId == "B2B_CA_SALES_CHANNEL") - { - row["AccountType"] = account_type2; - row["Pod"] = pod1; - row["Account"] = account_B2B_CA; - row["SalesChannel"] = salesChannelEnumId; - row["orderDateYearName"] = orderDateYearName; - row["orderDateMonthOfYear"] = orderDateMonthOfYear; - row["orderDateMonthName"] = orderDateMonthName; - row["orderDateWeekOfYear"] = orderDateWeekOfYear; - row["orderDateDayName"] = orderDateDayName; - row["orderDateDescription"] = orderDateDescription; - row["quantity"] = quantity; - row["GrossSales"] = GrossSales; - row["GrossMerchandizeSales"] = GrossMerchandizeSales; - row["GrossMerchandizeProfit"] = GrossMerchandizeProfit; - row["GrossShippingProfit"] = GrossShippingProfit; - row["GrossProfit"] = GrossProfit; - } - if (salesChannelEnumId == "B2B_IE_SALES_CHANNEL") - { - row["AccountType"] = account_type2; - row["Pod"] = pod1; - row["Account"] = account_B2B_IE; - row["SalesChannel"] = salesChannelEnumId; - row["orderDateYearName"] = orderDateYearName; - row["orderDateMonthOfYear"] = orderDateMonthOfYear; - row["orderDateMonthName"] = orderDateMonthName; - row["orderDateWeekOfYear"] = orderDateWeekOfYear; - row["orderDateDayName"] = orderDateDayName; - row["orderDateDescription"] = orderDateDescription; - row["quantity"] = quantity; - row["GrossSales"] = GrossSales; - row["GrossMerchandizeSales"] = GrossMerchandizeSales; - row["GrossMerchandizeProfit"] = GrossMerchandizeProfit; - row["GrossShippingProfit"] = GrossShippingProfit; - row["GrossProfit"] = GrossProfit; - } - if (salesChannelEnumId == "B2B_SG_SALES_CHANNEL") - { - row["AccountType"] = account_type2; - row["Pod"] = pod1; - row["Account"] = account_B2B_SG; - row["SalesChannel"] = salesChannelEnumId; - row["orderDateYearName"] = orderDateYearName; - row["orderDateMonthOfYear"] = orderDateMonthOfYear; - row["orderDateMonthName"] = orderDateMonthName; - row["orderDateWeekOfYear"] = orderDateWeekOfYear; - row["orderDateDayName"] = orderDateDayName; - row["orderDateDescription"] = orderDateDescription; - row["quantity"] = quantity; - row["GrossSales"] = GrossSales; - row["GrossMerchandizeSales"] = GrossMerchandizeSales; - row["GrossMerchandizeProfit"] = GrossMerchandizeProfit; - row["GrossShippingProfit"] = GrossShippingProfit; - row["GrossProfit"] = GrossProfit; - } - if (salesChannelEnumId == "B2B_UK_SALES_CHANNEL") - { - row["AccountType"] = account_type2; - row["Pod"] = pod1; - row["Account"] = account_B2B_UK; - row["SalesChannel"] = salesChannelEnumId; - row["orderDateYearName"] = orderDateYearName; - row["orderDateMonthOfYear"] = orderDateMonthOfYear; - row["orderDateMonthName"] = orderDateMonthName; - row["orderDateWeekOfYear"] = orderDateWeekOfYear; - row["orderDateDayName"] = orderDateDayName; - row["orderDateDescription"] = orderDateDescription; - row["quantity"] = quantity; - row["GrossSales"] = GrossSales; - row["GrossMerchandizeSales"] = GrossMerchandizeSales; - row["GrossMerchandizeProfit"] = GrossMerchandizeProfit; - row["GrossShippingProfit"] = GrossShippingProfit; - row["GrossProfit"] = GrossProfit; - } - if (salesChannelEnumId == "B2B_US_SALES_CHANNEL") - { - row["AccountType"] = account_type2; - row["Pod"] = pod1; - row["Account"] = account_B2B_US; - row["SalesChannel"] = salesChannelEnumId; - row["orderDateYearName"] = orderDateYearName; - row["orderDateMonthOfYear"] = orderDateMonthOfYear; - row["orderDateMonthName"] = orderDateMonthName; - row["orderDateWeekOfYear"] = orderDateWeekOfYear; - row["orderDateDayName"] = orderDateDayName; - row["orderDateDescription"] = orderDateDescription; - row["quantity"] = quantity; - row["GrossSales"] = GrossSales; - row["GrossMerchandizeSales"] = GrossMerchandizeSales; - row["GrossMerchandizeProfit"] = GrossMerchandizeProfit; - row["GrossShippingProfit"] = GrossShippingProfit; - row["GrossProfit"] = GrossProfit; - } - if (salesChannelEnumId == "B2B_DE_SALES_CHANNEL") - { - row["AccountType"] = account_type2; - row["Pod"] = pod2; - row["Account"] = account_B2B_DE; - row["SalesChannel"] = salesChannelEnumId; - row["orderDateYearName"] = orderDateYearName; - row["orderDateMonthOfYear"] = orderDateMonthOfYear; - row["orderDateMonthName"] = orderDateMonthName; - row["orderDateWeekOfYear"] = orderDateWeekOfYear; - row["orderDateDayName"] = orderDateDayName; - row["orderDateDescription"] = orderDateDescription; - row["quantity"] = quantity; - row["GrossSales"] = GrossSales; - row["GrossMerchandizeSales"] = GrossMerchandizeSales; - row["GrossMerchandizeProfit"] = GrossMerchandizeProfit; - row["GrossShippingProfit"] = GrossShippingProfit; - row["GrossProfit"] = GrossProfit; - } - if (salesChannelEnumId == "B2B_ES_SALES_CHANNEL") - { - row["AccountType"] = account_type2; - row["Pod"] = pod2; - row["Account"] = account_B2B_ES; - row["SalesChannel"] = salesChannelEnumId; - row["orderDateYearName"] = orderDateYearName; - row["orderDateMonthOfYear"] = orderDateMonthOfYear; - row["orderDateMonthName"] = orderDateMonthName; - row["orderDateWeekOfYear"] = orderDateWeekOfYear; - row["orderDateDayName"] = orderDateDayName; - row["orderDateDescription"] = orderDateDescription; - row["quantity"] = quantity; - row["GrossSales"] = GrossSales; - row["GrossMerchandizeSales"] = GrossMerchandizeSales; - row["GrossMerchandizeProfit"] = GrossMerchandizeProfit; - row["GrossShippingProfit"] = GrossShippingProfit; - row["GrossProfit"] = GrossProfit; - } - if (salesChannelEnumId == "B2B_FR_SALES_CHANNEL") - { - row["AccountType"] = account_type2; - row["Pod"] = pod2; - row["Account"] = account_B2B_FR; - row["SalesChannel"] = salesChannelEnumId; - row["orderDateYearName"] = orderDateYearName; - row["orderDateMonthOfYear"] = orderDateMonthOfYear; - row["orderDateMonthName"] = orderDateMonthName; - row["orderDateWeekOfYear"] = orderDateWeekOfYear; - row["orderDateDayName"] = orderDateDayName; - row["orderDateDescription"] = orderDateDescription; - row["quantity"] = quantity; - row["GrossSales"] = GrossSales; - row["GrossMerchandizeSales"] = GrossMerchandizeSales; - row["GrossMerchandizeProfit"] = GrossMerchandizeProfit; - row["GrossShippingProfit"] = GrossShippingProfit; - row["GrossProfit"] = GrossProfit; - } - if (salesChannelEnumId == "B2B_IT_SALES_CHANNEL") - { - row["AccountType"] = account_type2; - row["Pod"] = pod2; - row["Account"] = account_B2B_IT; - row["SalesChannel"] = salesChannelEnumId; - row["orderDateYearName"] = orderDateYearName; - row["orderDateMonthOfYear"] = orderDateMonthOfYear; - row["orderDateMonthName"] = orderDateMonthName; - row["orderDateWeekOfYear"] = orderDateWeekOfYear; - row["orderDateDayName"] = orderDateDayName; - row["orderDateDescription"] = orderDateDescription; - row["quantity"] = quantity; - row["GrossSales"] = GrossSales; - row["GrossMerchandizeSales"] = GrossMerchandizeSales; - row["GrossMerchandizeProfit"] = GrossMerchandizeProfit; - row["GrossShippingProfit"] = GrossShippingProfit; - row["GrossProfit"] = GrossProfit; - } - - currentRow ++; + starschema = starschemas.get(currentRow); + orderDateDescription = starschema.getString("orderDateDescription"); + orderDateDayName = starschema.getString("orderDateDayName"); + orderDateDayOfMonth = starschema.getString("orderDateDayOfMonth"); + orderDateMonthName = starschema.getString("orderDateMonthName"); + orderDateYearName = starschema.getString("orderDateYearName"); + orderDateWeekOfYear = starschema.getString("orderDateWeekOfYear"); + orderDateYearMonthDay = starschema.getString("orderDateYearMonthDay"); + orderDateMonthOfYear = starschema.getString("orderDateMonthOfYear"); + + quantity = starschema.getString("quantity"); + GrossSales = starschema.getString("GrossSales"); + GrossMerchandizeSales = starschema.getString("GrossMerchandizeSales"); + GrossMerchandizeProfit = starschema.getString("GrossMerchandizeProfit"); + GrossShippingProfit = starschema.getString("GrossShippingProfit"); + GrossProfit = starschema.getString("GrossProfit"); + + salesChannelEnumId = starschema.getString("salesChannelEnumId"); + saleChannel = starschema.getString("saleChannel"); + + if (salesChannelEnumId == "B2C_AU_SALES_CHANNEL") + { + row["AccountType"] = account_type1; + row["Pod"] = pod1; + row["Account"] = account_B2C_AU; + row["SalesChannel"] = salesChannelEnumId; + row["orderDateYearName"] = orderDateYearName; + row["orderDateMonthOfYear"] = orderDateMonthOfYear; + row["orderDateMonthName"] = orderDateMonthName; + row["orderDateWeekOfYear"] = orderDateWeekOfYear; + row["orderDateDayName"] = orderDateDayName; + row["orderDateDescription"] = orderDateDescription; + row["quantity"] = quantity; + row["GrossSales"] = GrossSales; + row["GrossMerchandizeSales"] = GrossMerchandizeSales; + row["GrossMerchandizeProfit"] = GrossMerchandizeProfit; + row["GrossShippingProfit"] = GrossShippingProfit; + row["GrossProfit"] = GrossProfit; + } + if (salesChannelEnumId == "B2C_CA_SALES_CHANNEL") + { + row["AccountType"] = account_type1; + row["Pod"] = pod1; + row["Account"] = account_B2C_CA; + row["SalesChannel"] = salesChannelEnumId; + row["orderDateYearName"] = orderDateYearName; + row["orderDateMonthOfYear"] = orderDateMonthOfYear; + row["orderDateMonthName"] = orderDateMonthName; + row["orderDateWeekOfYear"] = orderDateWeekOfYear; + row["orderDateDayName"] = orderDateDayName; + row["orderDateDescription"] = orderDateDescription; + row["quantity"] = quantity; + row["GrossSales"] = GrossSales; + row["GrossMerchandizeSales"] = GrossMerchandizeSales; + row["GrossMerchandizeProfit"] = GrossMerchandizeProfit; + row["GrossShippingProfit"] = GrossShippingProfit; + row["GrossProfit"] = GrossProfit; + } + if (salesChannelEnumId == "B2C_IE_SALES_CHANNEL") + { + row["AccountType"] = account_type1; + row["Pod"] = pod1; + row["Account"] = account_B2C_IE; + row["SalesChannel"] = salesChannelEnumId; + row["orderDateYearName"] = orderDateYearName; + row["orderDateMonthOfYear"] = orderDateMonthOfYear; + row["orderDateMonthName"] = orderDateMonthName; + row["orderDateWeekOfYear"] = orderDateWeekOfYear; + row["orderDateDayName"] = orderDateDayName; + row["orderDateDescription"] = orderDateDescription; + row["quantity"] = quantity; + row["GrossSales"] = GrossSales; + row["GrossMerchandizeSales"] = GrossMerchandizeSales; + row["GrossMerchandizeProfit"] = GrossMerchandizeProfit; + row["GrossShippingProfit"] = GrossShippingProfit; + row["GrossProfit"] = GrossProfit; + } + if (salesChannelEnumId == "B2C_SG_SALES_CHANNEL") + { + row["AccountType"] = account_type1; + row["Pod"] = pod1; + row["Account"] = account_B2C_SG; + row["SalesChannel"] = salesChannelEnumId; + row["orderDateYearName"] = orderDateYearName; + row["orderDateMonthOfYear"] = orderDateMonthOfYear; + row["orderDateMonthName"] = orderDateMonthName; + row["orderDateWeekOfYear"] = orderDateWeekOfYear; + row["orderDateDayName"] = orderDateDayName; + row["orderDateDescription"] = orderDateDescription; + row["quantity"] = quantity; + row["GrossSales"] = GrossSales; + row["GrossMerchandizeSales"] = GrossMerchandizeSales; + row["GrossMerchandizeProfit"] = GrossMerchandizeProfit; + row["GrossShippingProfit"] = GrossShippingProfit; + row["GrossProfit"] = GrossProfit; + } + if (salesChannelEnumId == "B2C_UK_SALES_CHANNEL") + { + row["AccountType"] = account_type1; + row["Pod"] = pod1; + row["Account"] = account_B2C_UK; + row["SalesChannel"] = salesChannelEnumId; + row["orderDateYearName"] = orderDateYearName; + row["orderDateMonthOfYear"] = orderDateMonthOfYear; + row["orderDateMonthName"] = orderDateMonthName; + row["orderDateWeekOfYear"] = orderDateWeekOfYear; + row["orderDateDayName"] = orderDateDayName; + row["orderDateDescription"] = orderDateDescription; + row["quantity"] = quantity; + row["GrossSales"] = GrossSales; + row["GrossMerchandizeSales"] = GrossMerchandizeSales; + row["GrossMerchandizeProfit"] = GrossMerchandizeProfit; + row["GrossShippingProfit"] = GrossShippingProfit; + row["GrossProfit"] = GrossProfit; + } + if (salesChannelEnumId == "B2C_US_SALES_CHANNEL") + { + row["AccountType"] = account_type1; + row["Pod"] = pod1; + row["Account"] = account_B2C_US; + row["SalesChannel"] = salesChannelEnumId; + row["orderDateYearName"] = orderDateYearName; + row["orderDateMonthOfYear"] = orderDateMonthOfYear; + row["orderDateMonthName"] = orderDateMonthName; + row["orderDateWeekOfYear"] = orderDateWeekOfYear; + row["orderDateDayName"] = orderDateDayName; + row["orderDateDescription"] = orderDateDescription; + row["quantity"] = quantity; + row["GrossSales"] = GrossSales; + row["GrossMerchandizeSales"] = GrossMerchandizeSales; + row["GrossMerchandizeProfit"] = GrossMerchandizeProfit; + row["GrossShippingProfit"] = GrossShippingProfit; + row["GrossProfit"] = GrossProfit; + } + if (salesChannelEnumId == "B2C_DE_SALES_CHANNEL") + { + row["AccountType"] = account_type1; + row["Pod"] = pod2; + row["Account"] = account_B2C_DE; + row["SalesChannel"] = salesChannelEnumId; + row["orderDateYearName"] = orderDateYearName; + row["orderDateMonthOfYear"] = orderDateMonthOfYear; + row["orderDateMonthName"] = orderDateMonthName; + row["orderDateWeekOfYear"] = orderDateWeekOfYear; + row["orderDateDayName"] = orderDateDayName; + row["orderDateDescription"] = orderDateDescription; + row["quantity"] = quantity; + row["GrossSales"] = GrossSales; + row["GrossMerchandizeSales"] = GrossMerchandizeSales; + row["GrossMerchandizeProfit"] = GrossMerchandizeProfit; + row["GrossShippingProfit"] = GrossShippingProfit; + row["GrossProfit"] = GrossProfit; + } + if (salesChannelEnumId == "B2C_ES_SALES_CHANNEL") + { + row["AccountType"] = account_type1; + row["Pod"] = pod2; + row["Account"] = account_B2C_ES; + row["SalesChannel"] = salesChannelEnumId; + row["orderDateYearName"] = orderDateYearName; + row["orderDateMonthOfYear"] = orderDateMonthOfYear; + row["orderDateMonthName"] = orderDateMonthName; + row["orderDateWeekOfYear"] = orderDateWeekOfYear; + row["orderDateDayName"] = orderDateDayName; + row["orderDateDescription"] = orderDateDescription; + row["quantity"] = quantity; + row["GrossSales"] = GrossSales; + row["GrossMerchandizeSales"] = GrossMerchandizeSales; + row["GrossMerchandizeProfit"] = GrossMerchandizeProfit; + row["GrossShippingProfit"] = GrossShippingProfit; + row["GrossProfit"] = GrossProfit; + } + if (salesChannelEnumId == "B2C_FR_SALES_CHANNEL") + { + row["AccountType"] = account_type1; + row["Pod"] = pod2; + row["Account"] = account_B2C_FR; + row["SalesChannel"] = salesChannelEnumId; + row["orderDateYearName"] = orderDateYearName; + row["orderDateMonthOfYear"] = orderDateMonthOfYear; + row["orderDateMonthName"] = orderDateMonthName; + row["orderDateWeekOfYear"] = orderDateWeekOfYear; + row["orderDateDayName"] = orderDateDayName; + row["orderDateDescription"] = orderDateDescription; + row["quantity"] = quantity; + row["GrossSales"] = GrossSales; + row["GrossMerchandizeSales"] = GrossMerchandizeSales; + row["GrossMerchandizeProfit"] = GrossMerchandizeProfit; + row["GrossShippingProfit"] = GrossShippingProfit; + row["GrossProfit"] = GrossProfit; + } + if (salesChannelEnumId == "B2C_IT_SALES_CHANNEL") + { + row["AccountType"] = account_type1; + row["Pod"] = pod2; + row["Account"] = account_B2C_IT; + row["SalesChannel"] = salesChannelEnumId; + row["orderDateYearName"] = orderDateYearName; + row["orderDateMonthOfYear"] = orderDateMonthOfYear; + row["orderDateMonthName"] = orderDateMonthName; + row["orderDateWeekOfYear"] = orderDateWeekOfYear; + row["orderDateDayName"] = orderDateDayName; + row["orderDateDescription"] = orderDateDescription; + row["quantity"] = quantity; + row["GrossSales"] = GrossSales; + row["GrossMerchandizeSales"] = GrossMerchandizeSales; + row["GrossMerchandizeProfit"] = GrossMerchandizeProfit; + row["GrossShippingProfit"] = GrossShippingProfit; + row["GrossProfit"] = GrossProfit; + } + if (salesChannelEnumId == "B2B_AU_SALES_CHANNEL") + { + row["AccountType"] = account_type2; + row["Pod"] = pod1; + row["Account"] = account_B2B_AU; + row["SalesChannel"] = salesChannelEnumId; + row["orderDateYearName"] = orderDateYearName; + row["orderDateMonthOfYear"] = orderDateMonthOfYear; + row["orderDateMonthName"] = orderDateMonthName; + row["orderDateWeekOfYear"] = orderDateWeekOfYear; + row["orderDateDayName"] = orderDateDayName; + row["orderDateDescription"] = orderDateDescription; + row["quantity"] = quantity; + row["GrossSales"] = GrossSales; + row["GrossMerchandizeSales"] = GrossMerchandizeSales; + row["GrossMerchandizeProfit"] = GrossMerchandizeProfit; + row["GrossShippingProfit"] = GrossShippingProfit; + row["GrossProfit"] = GrossProfit; + } + if (salesChannelEnumId == "B2B_CA_SALES_CHANNEL") + { + row["AccountType"] = account_type2; + row["Pod"] = pod1; + row["Account"] = account_B2B_CA; + row["SalesChannel"] = salesChannelEnumId; + row["orderDateYearName"] = orderDateYearName; + row["orderDateMonthOfYear"] = orderDateMonthOfYear; + row["orderDateMonthName"] = orderDateMonthName; + row["orderDateWeekOfYear"] = orderDateWeekOfYear; + row["orderDateDayName"] = orderDateDayName; + row["orderDateDescription"] = orderDateDescription; + row["quantity"] = quantity; + row["GrossSales"] = GrossSales; + row["GrossMerchandizeSales"] = GrossMerchandizeSales; + row["GrossMerchandizeProfit"] = GrossMerchandizeProfit; + row["GrossShippingProfit"] = GrossShippingProfit; + row["GrossProfit"] = GrossProfit; + } + if (salesChannelEnumId == "B2B_IE_SALES_CHANNEL") + { + row["AccountType"] = account_type2; + row["Pod"] = pod1; + row["Account"] = account_B2B_IE; + row["SalesChannel"] = salesChannelEnumId; + row["orderDateYearName"] = orderDateYearName; + row["orderDateMonthOfYear"] = orderDateMonthOfYear; + row["orderDateMonthName"] = orderDateMonthName; + row["orderDateWeekOfYear"] = orderDateWeekOfYear; + row["orderDateDayName"] = orderDateDayName; + row["orderDateDescription"] = orderDateDescription; + row["quantity"] = quantity; + row["GrossSales"] = GrossSales; + row["GrossMerchandizeSales"] = GrossMerchandizeSales; + row["GrossMerchandizeProfit"] = GrossMerchandizeProfit; + row["GrossShippingProfit"] = GrossShippingProfit; + row["GrossProfit"] = GrossProfit; + } + if (salesChannelEnumId == "B2B_SG_SALES_CHANNEL") + { + row["AccountType"] = account_type2; + row["Pod"] = pod1; + row["Account"] = account_B2B_SG; + row["SalesChannel"] = salesChannelEnumId; + row["orderDateYearName"] = orderDateYearName; + row["orderDateMonthOfYear"] = orderDateMonthOfYear; + row["orderDateMonthName"] = orderDateMonthName; + row["orderDateWeekOfYear"] = orderDateWeekOfYear; + row["orderDateDayName"] = orderDateDayName; + row["orderDateDescription"] = orderDateDescription; + row["quantity"] = quantity; + row["GrossSales"] = GrossSales; + row["GrossMerchandizeSales"] = GrossMerchandizeSales; + row["GrossMerchandizeProfit"] = GrossMerchandizeProfit; + row["GrossShippingProfit"] = GrossShippingProfit; + row["GrossProfit"] = GrossProfit; + } + if (salesChannelEnumId == "B2B_UK_SALES_CHANNEL") + { + row["AccountType"] = account_type2; + row["Pod"] = pod1; + row["Account"] = account_B2B_UK; + row["SalesChannel"] = salesChannelEnumId; + row["orderDateYearName"] = orderDateYearName; + row["orderDateMonthOfYear"] = orderDateMonthOfYear; + row["orderDateMonthName"] = orderDateMonthName; + row["orderDateWeekOfYear"] = orderDateWeekOfYear; + row["orderDateDayName"] = orderDateDayName; + row["orderDateDescription"] = orderDateDescription; + row["quantity"] = quantity; + row["GrossSales"] = GrossSales; + row["GrossMerchandizeSales"] = GrossMerchandizeSales; + row["GrossMerchandizeProfit"] = GrossMerchandizeProfit; + row["GrossShippingProfit"] = GrossShippingProfit; + row["GrossProfit"] = GrossProfit; + } + if (salesChannelEnumId == "B2B_US_SALES_CHANNEL") + { + row["AccountType"] = account_type2; + row["Pod"] = pod1; + row["Account"] = account_B2B_US; + row["SalesChannel"] = salesChannelEnumId; + row["orderDateYearName"] = orderDateYearName; + row["orderDateMonthOfYear"] = orderDateMonthOfYear; + row["orderDateMonthName"] = orderDateMonthName; + row["orderDateWeekOfYear"] = orderDateWeekOfYear; + row["orderDateDayName"] = orderDateDayName; + row["orderDateDescription"] = orderDateDescription; + row["quantity"] = quantity; + row["GrossSales"] = GrossSales; + row["GrossMerchandizeSales"] = GrossMerchandizeSales; + row["GrossMerchandizeProfit"] = GrossMerchandizeProfit; + row["GrossShippingProfit"] = GrossShippingProfit; + row["GrossProfit"] = GrossProfit; + } + if (salesChannelEnumId == "B2B_DE_SALES_CHANNEL") + { + row["AccountType"] = account_type2; + row["Pod"] = pod2; + row["Account"] = account_B2B_DE; + row["SalesChannel"] = salesChannelEnumId; + row["orderDateYearName"] = orderDateYearName; + row["orderDateMonthOfYear"] = orderDateMonthOfYear; + row["orderDateMonthName"] = orderDateMonthName; + row["orderDateWeekOfYear"] = orderDateWeekOfYear; + row["orderDateDayName"] = orderDateDayName; + row["orderDateDescription"] = orderDateDescription; + row["quantity"] = quantity; + row["GrossSales"] = GrossSales; + row["GrossMerchandizeSales"] = GrossMerchandizeSales; + row["GrossMerchandizeProfit"] = GrossMerchandizeProfit; + row["GrossShippingProfit"] = GrossShippingProfit; + row["GrossProfit"] = GrossProfit; + } + if (salesChannelEnumId == "B2B_ES_SALES_CHANNEL") + { + row["AccountType"] = account_type2; + row["Pod"] = pod2; + row["Account"] = account_B2B_ES; + row["SalesChannel"] = salesChannelEnumId; + row["orderDateYearName"] = orderDateYearName; + row["orderDateMonthOfYear"] = orderDateMonthOfYear; + row["orderDateMonthName"] = orderDateMonthName; + row["orderDateWeekOfYear"] = orderDateWeekOfYear; + row["orderDateDayName"] = orderDateDayName; + row["orderDateDescription"] = orderDateDescription; + row["quantity"] = quantity; + row["GrossSales"] = GrossSales; + row["GrossMerchandizeSales"] = GrossMerchandizeSales; + row["GrossMerchandizeProfit"] = GrossMerchandizeProfit; + row["GrossShippingProfit"] = GrossShippingProfit; + row["GrossProfit"] = GrossProfit; + } + if (salesChannelEnumId == "B2B_FR_SALES_CHANNEL") + { + row["AccountType"] = account_type2; + row["Pod"] = pod2; + row["Account"] = account_B2B_FR; + row["SalesChannel"] = salesChannelEnumId; + row["orderDateYearName"] = orderDateYearName; + row["orderDateMonthOfYear"] = orderDateMonthOfYear; + row["orderDateMonthName"] = orderDateMonthName; + row["orderDateWeekOfYear"] = orderDateWeekOfYear; + row["orderDateDayName"] = orderDateDayName; + row["orderDateDescription"] = orderDateDescription; + row["quantity"] = quantity; + row["GrossSales"] = GrossSales; + row["GrossMerchandizeSales"] = GrossMerchandizeSales; + row["GrossMerchandizeProfit"] = GrossMerchandizeProfit; + row["GrossShippingProfit"] = GrossShippingProfit; + row["GrossProfit"] = GrossProfit; + } + if (salesChannelEnumId == "B2B_IT_SALES_CHANNEL") + { + row["AccountType"] = account_type2; + row["Pod"] = pod2; + row["Account"] = account_B2B_IT; + row["SalesChannel"] = salesChannelEnumId; + row["orderDateYearName"] = orderDateYearName; + row["orderDateMonthOfYear"] = orderDateMonthOfYear; + row["orderDateMonthName"] = orderDateMonthName; + row["orderDateWeekOfYear"] = orderDateWeekOfYear; + row["orderDateDayName"] = orderDateDayName; + row["orderDateDescription"] = orderDateDescription; + row["quantity"] = quantity; + row["GrossSales"] = GrossSales; + row["GrossMerchandizeSales"] = GrossMerchandizeSales; + row["GrossMerchandizeProfit"] = GrossMerchandizeProfit; + row["GrossShippingProfit"] = GrossShippingProfit; + row["GrossProfit"] = GrossProfit; + } + + currentRow ++; } return true;]]> diff --git a/applications/order/widget/ordermgr/ReportScreens.xml b/applications/order/widget/ordermgr/ReportScreens.xml index 0bb6921517..4eeb32c67d 100644 --- a/applications/order/widget/ordermgr/ReportScreens.xml +++ b/applications/order/widget/ordermgr/ReportScreens.xml @@ -25,7 +25,7 @@ under the License.
- + diff --git a/applications/product/webapp/facility/WEB-INF/actions/inventory/InventoryItemReport.groovy b/applications/product/webapp/facility/WEB-INF/actions/inventory/InventoryItemReport.groovy index 75cb83d869..565c2cb272 100644 --- a/applications/product/webapp/facility/WEB-INF/actions/inventory/InventoryItemReport.groovy +++ b/applications/product/webapp/facility/WEB-INF/actions/inventory/InventoryItemReport.groovy @@ -42,11 +42,11 @@ int lastIntMonth = Integer.parseInt(request.getParameter("lastIntMonth")); if (lastIntMonth == 0 ){ - fromOrderDate = null; + fromOrderDate = null; }else{ - fromDateTime = UtilDateTime.getDayStart(UtilDateTime.toTimestamp(UtilDateTime.nowTimestamp()), (lastIntMonth*(-30))); - fromOrderDate = UtilDateTime.toDateString(fromDateTime,"MMMM dd, yyyy") - Debug.logInfo("====fromDate======="+fromOrderDate.toString(),""); + fromDateTime = UtilDateTime.getDayStart(UtilDateTime.toTimestamp(UtilDateTime.nowTimestamp()), (lastIntMonth*(-30))); + fromOrderDate = UtilDateTime.toDateString(fromDateTime,"MMMM dd, yyyy") + Debug.logInfo("====fromDate======="+fromOrderDate.toString(),""); } birtParameters.facilityId = request.getParameter("facilityId"); diff --git a/applications/product/webapp/facility/inventory/report/InventoryReport.rptdesign b/applications/product/webapp/facility/inventory/report/InventoryReport.rptdesign index 2a6f7ff54a..f129b96b37 100644 --- a/applications/product/webapp/facility/inventory/report/InventoryReport.rptdesign +++ b/applications/product/webapp/facility/inventory/report/InventoryReport.rptdesign @@ -182,22 +182,22 @@ try { inputInvent = FastMap.newInstance(); inputInventFields = FastMap.newInstance(); if(params!=null){ - inputInventFields.put("facilityId", params["facilityId"]); - inputInventFields.put("noConditionFind", "Y"); - //inputFields.put("productInternalName", params["internalName"]); - /* - inputFields.put("quantityOnHandTotal", params["offsetQOHQty"]); - inputFields.put("availableToPromiseTotal", params["offsetATPQty"]); - inputFields.put("productId", params["productId"]); - inputFields.put("productTypeId", params["productTypeId"]); - inputFields.put("searchInProductCategoryId", params["searchInProductCategoryId"]); - inputFields.put("productSupplierId", params["productSupplierId"]); - inputFields.put("productsSoldThruTimestamp", params["productsSoldThruTimestamp"]); - inputFields.put("statusId", params["statusId"]); - inputFields.put("VIEW_SIZE", params["VIEW_SIZE"]); - inputFields.put("monthsInPastLimit", params["monthsInPastLimit"]); - inputFields.put("fromDateSellThrough", params["fromDateSellThrough"]); - inputFields.put("thruDateSellThrough", params["thruDateSellThrough"]);*/ + inputInventFields.put("facilityId", params["facilityId"]); + inputInventFields.put("noConditionFind", "Y"); + //inputFields.put("productInternalName", params["internalName"]); + /* + inputFields.put("quantityOnHandTotal", params["offsetQOHQty"]); + inputFields.put("availableToPromiseTotal", params["offsetATPQty"]); + inputFields.put("productId", params["productId"]); + inputFields.put("productTypeId", params["productTypeId"]); + inputFields.put("searchInProductCategoryId", params["searchInProductCategoryId"]); + inputFields.put("productSupplierId", params["productSupplierId"]); + inputFields.put("productsSoldThruTimestamp", params["productsSoldThruTimestamp"]); + inputFields.put("statusId", params["statusId"]); + inputFields.put("VIEW_SIZE", params["VIEW_SIZE"]); + inputFields.put("monthsInPastLimit", params["monthsInPastLimit"]); + inputFields.put("fromDateSellThrough", params["fromDateSellThrough"]); + inputFields.put("thruDateSellThrough", params["thruDateSellThrough"]);*/ } inputInvent.put("userLogin",userLogin); inputInvent.put("inputFields",inputInventFields); @@ -212,17 +212,17 @@ try { }]]> @@ -283,8 +283,8 @@ try { } inputOrderFields = FastMap.newInstance(); if(params!=null){ - inputOrderFields.put("orderDateDateValue_fld0_op", params["orderDateDateValue_fld0_op"]); - inputOrderFields.put("noConditionFind", "Y"); + inputOrderFields.put("orderDateDateValue_fld0_op", params["orderDateDateValue_fld0_op"]); + inputOrderFields.put("noConditionFind", "Y"); } orders = null; @@ -302,13 +302,13 @@ try { diff --git a/framework/base/dtd/ofbiz-component.xsd b/framework/base/dtd/ofbiz-component.xsd index b57efc6aa9..2eabc62449 100644 --- a/framework/base/dtd/ofbiz-component.xsd +++ b/framework/base/dtd/ofbiz-component.xsd @@ -252,6 +252,6 @@ under the License. - + --> diff --git a/framework/base/src/org/ofbiz/base/json/JSON.jj b/framework/base/src/org/ofbiz/base/json/JSON.jj index 97289ad1a5..4610ae477e 100644 --- a/framework/base/src/org/ofbiz/base/json/JSON.jj +++ b/framework/base/src/org/ofbiz/base/json/JSON.jj @@ -56,8 +56,8 @@ public class JSON { public JSON allowResolve(boolean allowResolve) { this.allowResolve = allowResolve; - token_source.SwitchTo(allowResolve ? RESOLVE : DEFAULT); - return this; + token_source.SwitchTo(allowResolve ? RESOLVE : DEFAULT); + return this; } } diff --git a/framework/bi/script/org/ofbiz/bi/DimensionServices.xml b/framework/bi/script/org/ofbiz/bi/DimensionServices.xml index 7d4a299c5e..bc53b1e2da 100644 --- a/framework/bi/script/org/ofbiz/bi/DimensionServices.xml +++ b/framework/bi/script/org/ofbiz/bi/DimensionServices.xml @@ -70,7 +70,7 @@ under the License. - + diff --git a/framework/birt/build.xml b/framework/birt/build.xml index 873b8885f0..357fbae637 100644 --- a/framework/birt/build.xml +++ b/framework/birt/build.xml @@ -45,6 +45,6 @@ under the License. - + diff --git a/framework/birt/data/helpdata/HELP_BIRT.xml b/framework/birt/data/helpdata/HELP_BIRT.xml index c2c31d8de9..03e8357ba6 100644 --- a/framework/birt/data/helpdata/HELP_BIRT.xml +++ b/framework/birt/data/helpdata/HELP_BIRT.xml @@ -25,9 +25,9 @@ under the License. OFBiz BIRT Overview - Welcome to OFBiz BIRT. The part installed within OFBiz allows you to run the reports which are prepared using Eclipse with the BIRT plugin installed. - As a demo we have prepared a product report as an example. - Look at the Eclipse BIRT web site for more information. + Welcome to OFBiz BIRT. The part installed within OFBiz allows you to run the reports which are prepared using Eclipse with the BIRT plugin installed. + As a demo we have prepared a product report as an example. + Look at the Eclipse BIRT web site for more information. This is a short document to help you get started using BIRT to make a report. @@ -47,8 +47,8 @@ under the License.
Examine the Example Report - The example report that run in OFBiz is in the file component://birt/webapp/birt/report/product.rptdesign. When you have started Eclipse BIRT, open this document. - This report show how a report receives data from OFBiz through Scripted Data Source using the OFBiz delegator. + The example report that run in OFBiz is in the file component://birt/webapp/birt/report/product.rptdesign. When you have started Eclipse BIRT, open this document. + This report show how a report receives data from OFBiz through Scripted Data Source using the OFBiz delegator. This report has the scripted data source name "OFBiz" and the data set that use the script data source name is called "Product". Open the script editor for Product data set, it uses the delegator object query data from the Product entity. A report that runs on the OFBiz platform can use the delegator object, dispatcher object, security object and classpath of OFBiz environment in the script. @@ -56,8 +56,8 @@ under the License.
Important file for using BIRT's jsp tags - If a web applications wants to use the report in a screen, copy birt.tld file to [WEB APP]/WEB-INF/ directory ant assign in in ftl - like <#assign birt = JspTaglibs["/WEB-INF/birt.tld"]/> + If a web applications wants to use the report in a screen, copy birt.tld file to [WEB APP]/WEB-INF/ directory ant assign in in ftl + like <#assign birt = JspTaglibs["/WEB-INF/birt.tld"]/>
Important tag's attribute in ftl. diff --git a/framework/common/data/GeoData_CN.xml b/framework/common/data/GeoData_CN.xml index 581778dd1c..fc139e94ad 100644 --- a/framework/common/data/GeoData_CN.xml +++ b/framework/common/data/GeoData_CN.xml @@ -24,14 +24,14 @@ under the License. See also: http://en.wikipedia.org/wiki/Province_of_China http://en.wikipedia.org/wiki/ISO_3166-2:CN --> - - - - + + + + - + @@ -45,21 +45,21 @@ under the License. - - - - - - - - - - - + + + + + + + + + + + - + - + @@ -86,8 +86,8 @@ under the License. - - + + diff --git a/framework/common/webcommon/includes/ajaxAutocompleteOptions.ftl b/framework/common/webcommon/includes/ajaxAutocompleteOptions.ftl index 1047e6a10b..04195d598c 100644 --- a/framework/common/webcommon/includes/ajaxAutocompleteOptions.ftl +++ b/framework/common/webcommon/includes/ajaxAutocompleteOptions.ftl @@ -27,11 +27,11 @@ under the License. <#list context.displayFieldsSet as key> <#assign field = autocompleteOption.get(key)?if_exists> <#if field?has_content> - <#if (key == context.returnField)> + <#if (key == context.returnField)> <#assign returnField = field/> - <#else> + <#else> <#assign displayString = displayString + field + " "> - + <#if ("Y" == displayReturnField)> diff --git a/framework/datafile/src/org/ofbiz/datafile/Record.java b/framework/datafile/src/org/ofbiz/datafile/Record.java index 698f074df6..091e912e7c 100644 --- a/framework/datafile/src/org/ofbiz/datafile/Record.java +++ b/framework/datafile/src/org/ofbiz/datafile/Record.java @@ -54,89 +54,89 @@ public class Record implements Serializable { /** Creates new Record */ protected Record(ModelRecord modelRecord) { - if (modelRecord == null) - throw new IllegalArgumentException("Cannont create a Record with a null modelRecord parameter"); - this.recordName = modelRecord.name; - this.modelRecord = modelRecord; - this.fields = new HashMap(); + if (modelRecord == null) + throw new IllegalArgumentException("Cannont create a Record with a null modelRecord parameter"); + this.recordName = modelRecord.name; + this.modelRecord = modelRecord; + this.fields = new HashMap(); } /** Creates new Record from existing Map */ protected Record(ModelRecord modelRecord, Map fields) { - if (modelRecord == null) - throw new IllegalArgumentException("Cannont create a Record with a null modelRecord parameter"); - this.recordName = modelRecord.name; - this.modelRecord = modelRecord; - this.fields = (fields == null ? new HashMap() : new HashMap(fields)); + if (modelRecord == null) + throw new IllegalArgumentException("Cannont create a Record with a null modelRecord parameter"); + this.recordName = modelRecord.name; + this.modelRecord = modelRecord; + this.fields = (fields == null ? new HashMap() : new HashMap(fields)); } public String getRecordName() { - return recordName; + return recordName; } public ModelRecord getModelRecord() { - if (modelRecord == null) { - throw new IllegalStateException("[Record.getModelRecord] could not find modelRecord for recordName " + recordName); - } - return modelRecord; + if (modelRecord == null) { + throw new IllegalStateException("[Record.getModelRecord] could not find modelRecord for recordName " + recordName); + } + return modelRecord; } public Object get(String name) { - if (getModelRecord().getModelField(name) == null) { - throw new IllegalArgumentException("[Record.get] \"" + name + "\" is not a field of " + recordName); - // Debug.logWarning("[GenericRecord.get] \"" + name + "\" is not a field of " + recordName + ", but getting anyway...", module); - } - return fields.get(name); + if (getModelRecord().getModelField(name) == null) { + throw new IllegalArgumentException("[Record.get] \"" + name + "\" is not a field of " + recordName); + // Debug.logWarning("[GenericRecord.get] \"" + name + "\" is not a field of " + recordName + ", but getting anyway...", module); + } + return fields.get(name); } public String getString(String name) { - Object object = get(name); + Object object = get(name); - if (object == null) - return null; - if (object instanceof java.lang.String) - return (String) object; - else - return object.toString(); + if (object == null) + return null; + if (object instanceof java.lang.String) + return (String) object; + else + return object.toString(); } public String getStringAndEmpty(String name) { - Object object = get(name); + Object object = get(name); - if (object == null) - return ""; - if (object instanceof java.lang.String) - return (String) object; - else - return object.toString(); + if (object == null) + return ""; + if (object instanceof java.lang.String) + return (String) object; + else + return object.toString(); } public java.sql.Timestamp getTimestamp(String name) { - return (java.sql.Timestamp) get(name); + return (java.sql.Timestamp) get(name); } public java.sql.Time getTime(String name) { - return (java.sql.Time) get(name); + return (java.sql.Time) get(name); } public java.sql.Date getDate(String name) { - return (java.sql.Date) get(name); + return (java.sql.Date) get(name); } public Integer getInteger(String name) { - return (Integer) get(name); + return (Integer) get(name); } public Long getLong(String name) { - return (Long) get(name); + return (Long) get(name); } public Float getFloat(String name) { - return (Float) get(name); + return (Float) get(name); } public Double getDouble(String name) { - return (Double) get(name); + return (Double) get(name); } /** Sets the named field to the passed value, even if the value is null @@ -144,7 +144,7 @@ public class Record implements Serializable { * @param value The value to set */ public void set(String name, Object value) { - set(name, value, true); + set(name, value, true); } /** Sets the named field to the passed value. If value is null, it is only @@ -154,25 +154,25 @@ public class Record implements Serializable { * @param setIfNull Specifies whether or not to set the value if it is null */ public synchronized void set(String name, Object value, boolean setIfNull) { - if (getModelRecord().getModelField(name) == null) { - throw new IllegalArgumentException("[Record.set] \"" + name + "\" is not a field of " + recordName); - // Debug.logWarning("[GenericRecord.set] \"" + name + "\" is not a field of " + recordName + ", but setting anyway...", module); - } - if (value != null || setIfNull) { - if (value instanceof Boolean) { - value = ((Boolean) value).booleanValue() ? "Y" : "N"; - } - fields.put(name, value); - } + if (getModelRecord().getModelField(name) == null) { + throw new IllegalArgumentException("[Record.set] \"" + name + "\" is not a field of " + recordName); + // Debug.logWarning("[GenericRecord.set] \"" + name + "\" is not a field of " + recordName + ", but setting anyway...", module); + } + if (value != null || setIfNull) { + if (value instanceof Boolean) { + value = ((Boolean) value).booleanValue() ? "Y" : "N"; + } + fields.put(name, value); + } } /** * little endian reader for 2 byte short. */ public final short readLEShort(byte[] byteArray) { - return (short)( - (byteArray[1]&0xff) << 8 | - (byteArray[0]&0xff)); + return (short)( + (byteArray[1]&0xff) << 8 | + (byteArray[0]&0xff)); } @@ -180,26 +180,26 @@ public class Record implements Serializable { * little endian reader for 4 byte int. */ public final int readLEInt(byte []byteArray) { - return - (byteArray[3]) << 24 | - (byteArray[2]&0xff) << 16 | - (byteArray[1]&0xff) << 8 | - (byteArray[0]&0xff); + return + (byteArray[3]) << 24 | + (byteArray[2]&0xff) << 16 | + (byteArray[1]&0xff) << 8 | + (byteArray[0]&0xff); } /** * little endian reader for 8 byte long. */ public final long readLELong(byte []byteArray) { - return - (long)(byteArray[7]) << 56 | /* long cast needed or shift done modulo 32 */ - (long)(byteArray[6]&0xff) << 48 | - (long)(byteArray[5]&0xff) << 40 | - (long)(byteArray[4]&0xff) << 32 | - (long)(byteArray[3]&0xff) << 24 | - (long)(byteArray[2]&0xff) << 16 | - (long)(byteArray[1]&0xff) << 8 | - (long)(byteArray[0]&0xff); + return + (long)(byteArray[7]) << 56 | /* long cast needed or shift done modulo 32 */ + (long)(byteArray[6]&0xff) << 48 | + (long)(byteArray[5]&0xff) << 40 | + (long)(byteArray[4]&0xff) << 32 | + (long)(byteArray[3]&0xff) << 24 | + (long)(byteArray[2]&0xff) << 16 | + (long)(byteArray[1]&0xff) << 8 | + (long)(byteArray[0]&0xff); } /** Sets the named field to the passed value, converting the value from a String to the current type using Type.valueOf() @@ -207,272 +207,272 @@ public class Record implements Serializable { * @param value The String value to convert and set */ public void setString(String name, String value) throws ParseException { - if (name == null || value == null || value.equals("")) - return; - ModelField field = getModelRecord().getModelField(name); + if (name == null || value == null || value.equals("")) + return; + ModelField field = getModelRecord().getModelField(name); - if (field == null) - set(name, value); // this will get an error in the set() method... + if (field == null) + set(name, value); // this will get an error in the set() method... - // if the string is all spaces ignore - boolean nonSpace = false; + // if the string is all spaces ignore + boolean nonSpace = false; - for (int i = 0; i < value.length(); i++) { - if (value.charAt(i) != ' ') { - nonSpace = true; - break; - } - } - if (!nonSpace) - return; + for (int i = 0; i < value.length(); i++) { + if (value.charAt(i) != ' ') { + nonSpace = true; + break; + } + } + if (!nonSpace) + return; - // if (Debug.verboseOn()) Debug.logVerbose("Value: " + value, module); + // if (Debug.verboseOn()) Debug.logVerbose("Value: " + value, module); - String fieldType = field.type; + String fieldType = field.type; - // first the custom types that need to be parsed - if (fieldType.equals("CustomTimestamp")) { - // this custom type will take a string a parse according to date formatting - // string then put the result in a java.sql.Timestamp - // a common timestamp format for flat files is with no separators: yyyyMMddHHmmss - SimpleDateFormat sdf = new SimpleDateFormat(field.format); - java.util.Date tempDate = sdf.parse(value); - java.sql.Timestamp timestamp = new java.sql.Timestamp(tempDate.getTime()); + // first the custom types that need to be parsed + if (fieldType.equals("CustomTimestamp")) { + // this custom type will take a string a parse according to date formatting + // string then put the result in a java.sql.Timestamp + // a common timestamp format for flat files is with no separators: yyyyMMddHHmmss + SimpleDateFormat sdf = new SimpleDateFormat(field.format); + java.util.Date tempDate = sdf.parse(value); + java.sql.Timestamp timestamp = new java.sql.Timestamp(tempDate.getTime()); - set(name, timestamp); - } else if (fieldType.equals("CustomDate")) { - // a common date only format for flat files is with no separators: yyyyMMdd or MMddyyyy - SimpleDateFormat sdf = new SimpleDateFormat(field.format); - java.util.Date tempDate = sdf.parse(value); - java.sql.Date date = new java.sql.Date(tempDate.getTime()); + set(name, timestamp); + } else if (fieldType.equals("CustomDate")) { + // a common date only format for flat files is with no separators: yyyyMMdd or MMddyyyy + SimpleDateFormat sdf = new SimpleDateFormat(field.format); + java.util.Date tempDate = sdf.parse(value); + java.sql.Date date = new java.sql.Date(tempDate.getTime()); - set(name, date); - } else if (fieldType.equals("CustomTime")) { - // a common time only format for flat files is with no separators: HHmmss - SimpleDateFormat sdf = new SimpleDateFormat(field.format); - java.util.Date tempDate = sdf.parse(value); - java.sql.Time time = new java.sql.Time(tempDate.getTime()); + set(name, date); + } else if (fieldType.equals("CustomTime")) { + // a common time only format for flat files is with no separators: HHmmss + SimpleDateFormat sdf = new SimpleDateFormat(field.format); + java.util.Date tempDate = sdf.parse(value); + java.sql.Time time = new java.sql.Time(tempDate.getTime()); - set(name, time); - } else if (fieldType.equals("FixedPointDouble")) { - // this custom type will parse a fixed point number according to the number - // of decimal places in the formatting string then place it in a Double - NumberFormat nf = NumberFormat.getNumberInstance(); - Number tempNum = nf.parse(value); - double number = tempNum.doubleValue(); - double decimalPlaces = Double.parseDouble(field.format); - double divisor = Math.pow(10.0, decimalPlaces); + set(name, time); + } else if (fieldType.equals("FixedPointDouble")) { + // this custom type will parse a fixed point number according to the number + // of decimal places in the formatting string then place it in a Double + NumberFormat nf = NumberFormat.getNumberInstance(); + Number tempNum = nf.parse(value); + double number = tempNum.doubleValue(); + double decimalPlaces = Double.parseDouble(field.format); + double divisor = Math.pow(10.0, decimalPlaces); - number = number / divisor; - set(name, Double.valueOf(number)); - } // standard types - else if (fieldType.equals("java.lang.String") || fieldType.equals("String")) - if (field.format.equals("EncryptedString")) { - String hashType = LoginServices.getHashType(); - set(name, HashCrypt.getDigestHash(value, hashType)); - } else { - set(name, value); - } - else if (fieldType.equals("NullTerminatedString")) { - int terminate = value.indexOf(0x0); - set(name, terminate>0?value.substring(0,terminate):value); - } else if (fieldType.equals("java.sql.Timestamp") || fieldType.equals("Timestamp")) - set(name, java.sql.Timestamp.valueOf(value)); - else if (fieldType.equals("java.sql.Time") || fieldType.equals("Time")) - set(name, java.sql.Time.valueOf(value)); - else if (fieldType.equals("java.sql.Date") || fieldType.equals("Date")) - set(name, java.sql.Date.valueOf(value)); - else if (fieldType.equals("java.lang.Integer") || fieldType.equals("Integer")) - set(name, Integer.valueOf(value)); - else if (fieldType.equals("java.lang.Long") || fieldType.equals("Long")) - set(name, Long.valueOf(value)); - else if (fieldType.equals("java.lang.Float") || fieldType.equals("Float")) - set(name, Float.valueOf(value)); - else if (fieldType.equals("java.lang.Double") || fieldType.equals("Double")) - set(name, Double.valueOf(value)); - else if (fieldType.equals("LEShort")) - set(name, Short.valueOf(readLEShort(value.getBytes()))); - else if (fieldType.equals("LEInteger")) - set(name, Integer.valueOf(readLEInt(value.getBytes()))); - else if (fieldType.equals("LELong")) - set(name, Long.valueOf(readLELong(value.getBytes()))); - else { - throw new IllegalArgumentException("Field type " + fieldType + " not currently supported. Sorry."); - } + number = number / divisor; + set(name, Double.valueOf(number)); + } // standard types + else if (fieldType.equals("java.lang.String") || fieldType.equals("String")) + if (field.format.equals("EncryptedString")) { + String hashType = LoginServices.getHashType(); + set(name, HashCrypt.getDigestHash(value, hashType)); + } else { + set(name, value); + } + else if (fieldType.equals("NullTerminatedString")) { + int terminate = value.indexOf(0x0); + set(name, terminate>0?value.substring(0,terminate):value); + } else if (fieldType.equals("java.sql.Timestamp") || fieldType.equals("Timestamp")) + set(name, java.sql.Timestamp.valueOf(value)); + else if (fieldType.equals("java.sql.Time") || fieldType.equals("Time")) + set(name, java.sql.Time.valueOf(value)); + else if (fieldType.equals("java.sql.Date") || fieldType.equals("Date")) + set(name, java.sql.Date.valueOf(value)); + else if (fieldType.equals("java.lang.Integer") || fieldType.equals("Integer")) + set(name, Integer.valueOf(value)); + else if (fieldType.equals("java.lang.Long") || fieldType.equals("Long")) + set(name, Long.valueOf(value)); + else if (fieldType.equals("java.lang.Float") || fieldType.equals("Float")) + set(name, Float.valueOf(value)); + else if (fieldType.equals("java.lang.Double") || fieldType.equals("Double")) + set(name, Double.valueOf(value)); + else if (fieldType.equals("LEShort")) + set(name, Short.valueOf(readLEShort(value.getBytes()))); + else if (fieldType.equals("LEInteger")) + set(name, Integer.valueOf(readLEInt(value.getBytes()))); + else if (fieldType.equals("LELong")) + set(name, Long.valueOf(readLELong(value.getBytes()))); + else { + throw new IllegalArgumentException("Field type " + fieldType + " not currently supported. Sorry."); + } } public String getFixedString(String name) { - if (name == null) - return null; - if (getModelRecord() == null) - throw new IllegalArgumentException("Could not find modelrecord for field named \"" + name + "\""); - ModelField field = getModelRecord().getModelField(name); + if (name == null) + return null; + if (getModelRecord() == null) + throw new IllegalArgumentException("Could not find modelrecord for field named \"" + name + "\""); + ModelField field = getModelRecord().getModelField(name); - if (field == null) - throw new IllegalArgumentException("Could not find model for field named \"" + name + "\""); + if (field == null) + throw new IllegalArgumentException("Could not find model for field named \"" + name + "\""); - Object value = get(name); + Object value = get(name); - if (value == null) { - return null; - } + if (value == null) { + return null; + } - String fieldType = field.type; - String str = null; + String fieldType = field.type; + String str = null; - // first the custom types that need to be parsed - if (fieldType.equals("CustomTimestamp")) { - // a common timestamp format for flat files is with no separators: yyyyMMddHHmmss - SimpleDateFormat sdf = new SimpleDateFormat(field.format); - java.sql.Timestamp timestamp = (java.sql.Timestamp) value; + // first the custom types that need to be parsed + if (fieldType.equals("CustomTimestamp")) { + // a common timestamp format for flat files is with no separators: yyyyMMddHHmmss + SimpleDateFormat sdf = new SimpleDateFormat(field.format); + java.sql.Timestamp timestamp = (java.sql.Timestamp) value; - str = sdf.format(new Date(timestamp.getTime())); - } else if (fieldType.equals("CustomDate")) { - // a common date only format for flat files is with no separators: yyyyMMdd or MMddyyyy - SimpleDateFormat sdf = new SimpleDateFormat(field.format); - java.sql.Date date = (java.sql.Date) value; + str = sdf.format(new Date(timestamp.getTime())); + } else if (fieldType.equals("CustomDate")) { + // a common date only format for flat files is with no separators: yyyyMMdd or MMddyyyy + SimpleDateFormat sdf = new SimpleDateFormat(field.format); + java.sql.Date date = (java.sql.Date) value; - str = sdf.format(new Date(date.getTime())); - } else if (fieldType.equals("CustomTime")) { - // a common time only format for flat files is with no separators: HHmmss - SimpleDateFormat sdf = new SimpleDateFormat(field.format); - java.sql.Time time = (java.sql.Time) value; + str = sdf.format(new Date(date.getTime())); + } else if (fieldType.equals("CustomTime")) { + // a common time only format for flat files is with no separators: HHmmss + SimpleDateFormat sdf = new SimpleDateFormat(field.format); + java.sql.Time time = (java.sql.Time) value; - str = sdf.format(new Date(time.getTime())); - } else if (fieldType.equals("FixedPointDouble")) { - // this custom type will parse a fixed point number according to the number - // of decimal places in the formatting string then place it in a Double - double decimalPlaces = Double.parseDouble(field.format); - double multiplier = Math.pow(10.0, decimalPlaces); - double dnum = multiplier * ((Double) value).doubleValue(); - long number = Math.round(dnum); + str = sdf.format(new Date(time.getTime())); + } else if (fieldType.equals("FixedPointDouble")) { + // this custom type will parse a fixed point number according to the number + // of decimal places in the formatting string then place it in a Double + double decimalPlaces = Double.parseDouble(field.format); + double multiplier = Math.pow(10.0, decimalPlaces); + double dnum = multiplier * ((Double) value).doubleValue(); + long number = Math.round(dnum); - str = padFrontZeros(Long.toString(number), field.length); - // if (Debug.infoOn()) Debug.logInfo("[Record.getFixedString] FixedPointDouble: multiplier=" + multiplier + ", value=" + value + ", dnum=" + dnum + ", number=" + number + ", str=" + str, module); - } // standard types - else if (fieldType.equals("java.lang.String") || fieldType.equals("String")) - str = value.toString(); - else if (fieldType.equals("java.sql.Timestamp") || fieldType.equals("Timestamp")) - str = value.toString(); - else if (fieldType.equals("java.sql.Time") || fieldType.equals("Time")) - str = value.toString(); - else if (fieldType.equals("java.sql.Date") || fieldType.equals("Date")) - str = value.toString(); - // for all numbers, pad front with zeros if field length is specified - else if (fieldType.equals("java.lang.Integer") || fieldType.equals("Integer")) - str = padFrontZeros(value.toString(), field.length); - else if (fieldType.equals("java.lang.Long") || fieldType.equals("Long")) - str = padFrontZeros(value.toString(), field.length); - else if (fieldType.equals("java.lang.Float") || fieldType.equals("Float")) - str = padFrontZeros(value.toString(), field.length); - else if (fieldType.equals("java.lang.Double") || fieldType.equals("Double")) - str = padFrontZeros(value.toString(), field.length); - else { - throw new IllegalArgumentException("Field type " + fieldType + " not currently supported. Sorry."); - } + str = padFrontZeros(Long.toString(number), field.length); + // if (Debug.infoOn()) Debug.logInfo("[Record.getFixedString] FixedPointDouble: multiplier=" + multiplier + ", value=" + value + ", dnum=" + dnum + ", number=" + number + ", str=" + str, module); + } // standard types + else if (fieldType.equals("java.lang.String") || fieldType.equals("String")) + str = value.toString(); + else if (fieldType.equals("java.sql.Timestamp") || fieldType.equals("Timestamp")) + str = value.toString(); + else if (fieldType.equals("java.sql.Time") || fieldType.equals("Time")) + str = value.toString(); + else if (fieldType.equals("java.sql.Date") || fieldType.equals("Date")) + str = value.toString(); + // for all numbers, pad front with zeros if field length is specified + else if (fieldType.equals("java.lang.Integer") || fieldType.equals("Integer")) + str = padFrontZeros(value.toString(), field.length); + else if (fieldType.equals("java.lang.Long") || fieldType.equals("Long")) + str = padFrontZeros(value.toString(), field.length); + else if (fieldType.equals("java.lang.Float") || fieldType.equals("Float")) + str = padFrontZeros(value.toString(), field.length); + else if (fieldType.equals("java.lang.Double") || fieldType.equals("Double")) + str = padFrontZeros(value.toString(), field.length); + else { + throw new IllegalArgumentException("Field type " + fieldType + " not currently supported. Sorry."); + } - if (str != null && field.length > 0 && str.length() < field.length) { - // pad the end with spaces - StringBuilder strBuf = new StringBuilder(str); + if (str != null && field.length > 0 && str.length() < field.length) { + // pad the end with spaces + StringBuilder strBuf = new StringBuilder(str); - while (strBuf.length() < field.length) - strBuf.append(' '); - str = strBuf.toString(); - } - return str; + while (strBuf.length() < field.length) + strBuf.append(' '); + str = strBuf.toString(); + } + return str; } public String writeLineString(ModelDataFile modelDataFile) throws DataFileException { - ModelRecord modelRecord = getModelRecord(); - boolean isFixedRecord = ModelDataFile.SEP_FIXED_RECORD.equals(modelDataFile.separatorStyle); - boolean isFixedLength = ModelDataFile.SEP_FIXED_LENGTH.equals(modelDataFile.separatorStyle); - boolean isDelimited = ModelDataFile.SEP_DELIMITED.equals(modelDataFile.separatorStyle); + ModelRecord modelRecord = getModelRecord(); + boolean isFixedRecord = ModelDataFile.SEP_FIXED_RECORD.equals(modelDataFile.separatorStyle); + boolean isFixedLength = ModelDataFile.SEP_FIXED_LENGTH.equals(modelDataFile.separatorStyle); + boolean isDelimited = ModelDataFile.SEP_DELIMITED.equals(modelDataFile.separatorStyle); - StringBuilder lineBuf = new StringBuilder(); + StringBuilder lineBuf = new StringBuilder(); - for (ModelField modelField: modelRecord.fields) { - String data = this.getFixedString(modelField.name); + for (ModelField modelField: modelRecord.fields) { + String data = this.getFixedString(modelField.name); - if (isDelimited && null != modelDataFile.textDelimiter) { - lineBuf.append(modelDataFile.textDelimiter); - } + if (isDelimited && null != modelDataFile.textDelimiter) { + lineBuf.append(modelDataFile.textDelimiter); + } - // if field is null (not set) then assume we want to pad the field - char PAD_CHAR = ' '; + // if field is null (not set) then assume we want to pad the field + char PAD_CHAR = ' '; - if (data == null) { - StringBuilder sb = new StringBuilder(""); + if (data == null) { + StringBuilder sb = new StringBuilder(""); - for (int i = 0; i < modelField.length; i++) - sb.append(PAD_CHAR); - data = sb.toString(); - } + for (int i = 0; i < modelField.length; i++) + sb.append(PAD_CHAR); + data = sb.toString(); + } - // Pad the record - if (isFixedRecord) { - while (modelField.position > lineBuf.length()) - lineBuf.append(" "); - } - // if (Debug.infoOn()) Debug.logInfo("Field: " + modelField.name + " Position: " + modelField.position + " BufLen: " + lineBuf.length(), module); + // Pad the record + if (isFixedRecord) { + while (modelField.position > lineBuf.length()) + lineBuf.append(" "); + } + // if (Debug.infoOn()) Debug.logInfo("Field: " + modelField.name + " Position: " + modelField.position + " BufLen: " + lineBuf.length(), module); - // if (Debug.infoOn()) Debug.logInfo("Got data \"" + data + "\" for field " + modelField.name + " in record " + modelRecord.name, module); - if (modelField.length > 0 && data.length() != modelField.length) - throw new DataFileException("Got field length " + data.length() + " but expected field length is " + modelField.length + " for field \"" + - modelField.name + "\" of record \"" + modelRecord.name + "\" data is: \"" + data + "\""); + // if (Debug.infoOn()) Debug.logInfo("Got data \"" + data + "\" for field " + modelField.name + " in record " + modelRecord.name, module); + if (modelField.length > 0 && data.length() != modelField.length) + throw new DataFileException("Got field length " + data.length() + " but expected field length is " + modelField.length + " for field \"" + + modelField.name + "\" of record \"" + modelRecord.name + "\" data is: \"" + data + "\""); - lineBuf.append(data); - if (isDelimited) { - if (null != modelDataFile.textDelimiter) { - lineBuf.append(modelDataFile.textDelimiter); - } - lineBuf.append(modelDataFile.delimiter); - } - } + lineBuf.append(data); + if (isDelimited) { + if (null != modelDataFile.textDelimiter) { + lineBuf.append(modelDataFile.textDelimiter); + } + lineBuf.append(modelDataFile.delimiter); + } + } - if (isDelimited) { - // just remove the last delimiter to finish clean, otherwise shows as extra column - lineBuf.setLength(lineBuf.length() - 1); - } + if (isDelimited) { + // just remove the last delimiter to finish clean, otherwise shows as extra column + lineBuf.setLength(lineBuf.length() - 1); + } - if ((isFixedRecord || isFixedLength) && modelDataFile.recordLength > 0 && lineBuf.length() != modelDataFile.recordLength) - throw new DataFileException("Got record length " + lineBuf.length() + " but expected record length is " + modelDataFile.recordLength + - " for record \"" + modelRecord.name + "\" data line is: \"" + lineBuf + "\""); + if ((isFixedRecord || isFixedLength) && modelDataFile.recordLength > 0 && lineBuf.length() != modelDataFile.recordLength) + throw new DataFileException("Got record length " + lineBuf.length() + " but expected record length is " + modelDataFile.recordLength + + " for record \"" + modelRecord.name + "\" data line is: \"" + lineBuf + "\""); - // for convenience, insert the type-code in where it is looked for, if exists - if (modelRecord.tcPosition > 0 && modelRecord.typeCode.length() > 0) { - lineBuf.replace(modelRecord.tcPosition, modelRecord.tcPosition + modelRecord.tcLength, modelRecord.typeCode); - } + // for convenience, insert the type-code in where it is looked for, if exists + if (modelRecord.tcPosition > 0 && modelRecord.typeCode.length() > 0) { + lineBuf.replace(modelRecord.tcPosition, modelRecord.tcPosition + modelRecord.tcLength, modelRecord.typeCode); + } - if (isFixedLength || isDelimited) - lineBuf.append('\n'); + if (isFixedLength || isDelimited) + lineBuf.append('\n'); - return lineBuf.toString(); + return lineBuf.toString(); } String padFrontZeros(String str, int totalLength) { - if (totalLength > 0 && str.length() < totalLength) { - // pad the front with zeros - StringBuilder zeros = new StringBuilder(); - int numZeros = totalLength - str.length(); + if (totalLength > 0 && str.length() < totalLength) { + // pad the front with zeros + StringBuilder zeros = new StringBuilder(); + int numZeros = totalLength - str.length(); - for (int i = 0; i < numZeros; i++) - zeros.append('0'); - zeros.append(str); - return zeros.toString(); - } else - return str; + for (int i = 0; i < numZeros; i++) + zeros.append('0'); + zeros.append(str); + return zeros.toString(); + } else + return str; } public Record getParentRecord() { - return parentRecord; + return parentRecord; } public List getChildRecords() { - return childRecords; + return childRecords; } public void addChildRecord(Record record) { - childRecords.add(record); + childRecords.add(record); } /** Creates new Record @@ -481,9 +481,9 @@ public class Record implements Serializable { * @return */ public static Record createRecord(ModelRecord modelRecord) throws DataFileException { - Record record = new Record(modelRecord); + Record record = new Record(modelRecord); - return record; + return record; } /** Creates new Record from existing fields Map @@ -493,9 +493,9 @@ public class Record implements Serializable { * @return */ public static Record createRecord(ModelRecord modelRecord, Map fields) throws DataFileException { - Record record = new Record(modelRecord, fields); + Record record = new Record(modelRecord, fields); - return record; + return record; } /** @@ -506,30 +506,30 @@ public class Record implements Serializable { * @return */ public static Record createRecord(String line, int lineNum, ModelRecord modelRecord) throws DataFileException { - Record record = new Record(modelRecord); + Record record = new Record(modelRecord); - for (ModelField modelField: modelRecord.fields) { - String strVal = null; + for (ModelField modelField: modelRecord.fields) { + String strVal = null; - try { - strVal = line.substring(modelField.position, modelField.position + modelField.length); - } catch (IndexOutOfBoundsException ioobe) { - throw new DataFileException("Field " + modelField.name + " from " + modelField.position + - " for " + modelField.length + " chars could not be read from a line (" + lineNum + ") with only " + - line.length() + " chars.", ioobe); - } - try { - record.setString(modelField.name, strVal); - } catch (java.text.ParseException e) { - throw new DataFileException("Could not parse field " + modelField.name + ", format string \"" + modelField.format + "\" with value " + strVal + - " on line " + lineNum, e); - } catch (java.lang.NumberFormatException e) { - throw new DataFileException("Number not valid for field " + modelField.name + ", format string \"" + modelField.format + "\" with value " + - strVal + " on line " + lineNum, e); - } - } - return record; + try { + strVal = line.substring(modelField.position, modelField.position + modelField.length); + } catch (IndexOutOfBoundsException ioobe) { + throw new DataFileException("Field " + modelField.name + " from " + modelField.position + + " for " + modelField.length + " chars could not be read from a line (" + lineNum + ") with only " + + line.length() + " chars.", ioobe); + } + try { + record.setString(modelField.name, strVal); + } catch (java.text.ParseException e) { + throw new DataFileException("Could not parse field " + modelField.name + ", format string \"" + modelField.format + "\" with value " + strVal + + " on line " + lineNum, e); + } catch (java.lang.NumberFormatException e) { + throw new DataFileException("Number not valid for field " + modelField.name + ", format string \"" + modelField.format + "\" with value " + + strVal + " on line " + lineNum, e); + } + } + return record; } /** @@ -541,58 +541,58 @@ public class Record implements Serializable { * @return */ public static Record createDelimitedRecord(String line, int lineNum, ModelRecord modelRecord, char delimiter, String textDelimiter) throws DataFileException { - Record record = new Record(modelRecord); + Record record = new Record(modelRecord); - StringTokenizer st = null; - if (line.endsWith(String.valueOf(delimiter))) { - st = new StringTokenizer(line + " ", "" + delimiter, true); - } - else { - st = new StringTokenizer(line, "" + delimiter, true); - } - for (ModelField modelField: modelRecord.fields) { - String strVal = null; + StringTokenizer st = null; + if (line.endsWith(String.valueOf(delimiter))) { + st = new StringTokenizer(line + " ", "" + delimiter, true); + } + else { + st = new StringTokenizer(line, "" + delimiter, true); + } + for (ModelField modelField: modelRecord.fields) { + String strVal = null; - if (modelField.expression) { - if (UtilValidate.isNotEmpty(modelField.refField)) { - strVal = record.getString(modelField.refField); - } - if (strVal == null) { - strVal = (String)modelField.defaultValue; - } - } else { - //some input lines may be less than the header model. - if (st.hasMoreTokens()) { - try { - strVal = st.nextToken(); - if (strVal.equals("" + delimiter)) { - strVal = null; - } else if (st.hasMoreTokens()) { - st.nextToken(); - } - } catch (NoSuchElementException nsee) { - throw new DataFileException("Field " + modelField.name + " could not be read from a line (" + lineNum + ") with only " + - line.length() + " chars.", nsee); - } - } - else { //if input line is less than the header model then pad with null - strVal = null; - } - } - try { - if (textDelimiter != null && (strVal.startsWith(textDelimiter) && strVal.endsWith(textDelimiter))) { - strVal = strVal.substring(textDelimiter.length(), strVal.length() - textDelimiter.length()); - } - record.setString(modelField.name, strVal); - } catch (java.text.ParseException e) { - throw new DataFileException("Could not parse field " + modelField.name + ", format string \"" + modelField.format + "\" with value " + strVal + - " on line " + lineNum, e); - } catch (java.lang.NumberFormatException e) { - throw new DataFileException("Number not valid for field " + modelField.name + ", format string \"" + modelField.format + "\" with value " + - strVal + " on line " + lineNum, e); - } - } - return record; + if (modelField.expression) { + if (UtilValidate.isNotEmpty(modelField.refField)) { + strVal = record.getString(modelField.refField); + } + if (strVal == null) { + strVal = (String)modelField.defaultValue; + } + } else { + //some input lines may be less than the header model. + if (st.hasMoreTokens()) { + try { + strVal = st.nextToken(); + if (strVal.equals("" + delimiter)) { + strVal = null; + } else if (st.hasMoreTokens()) { + st.nextToken(); + } + } catch (NoSuchElementException nsee) { + throw new DataFileException("Field " + modelField.name + " could not be read from a line (" + lineNum + ") with only " + + line.length() + " chars.", nsee); + } + } + else { //if input line is less than the header model then pad with null + strVal = null; + } + } + try { + if (textDelimiter != null && (strVal.startsWith(textDelimiter) && strVal.endsWith(textDelimiter))) { + strVal = strVal.substring(textDelimiter.length(), strVal.length() - textDelimiter.length()); + } + record.setString(modelField.name, strVal); + } catch (java.text.ParseException e) { + throw new DataFileException("Could not parse field " + modelField.name + ", format string \"" + modelField.format + "\" with value " + strVal + + " on line " + lineNum, e); + } catch (java.lang.NumberFormatException e) { + throw new DataFileException("Number not valid for field " + modelField.name + ", format string \"" + modelField.format + "\" with value " + + strVal + " on line " + lineNum, e); + } + } + return record; } } diff --git a/framework/documents/Framework.xml b/framework/documents/Framework.xml index 82cd343263..31acd2ef9e 100644 --- a/framework/documents/Framework.xml +++ b/framework/documents/Framework.xml @@ -18,11 +18,11 @@ under the License. --> - The OFBiz Framework Introduction. + version="5.0" xmlns:xl="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude" + xsi:schemaLocation="http://docbook.org/ns/docbook ../../applications/content/dtd/docbook.xsd" + xmlns="http://docbook.org/ns/docbook"> + The OFBiz Framework Introduction. - For a core configuration guide check the OFBiz website. + For a core configuration guide check the OFBiz website. diff --git a/framework/entity/documents/EntityEngine.xml b/framework/entity/documents/EntityEngine.xml index 234ec4a21e..33d351bbb8 100644 --- a/framework/entity/documents/EntityEngine.xml +++ b/framework/entity/documents/EntityEngine.xml @@ -18,10 +18,10 @@ under the License. -->
- The Entity Engine. + version="5.0" xmlns:xl="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude" + xsi:schemaLocation="http://docbook.org/ns/docbook ../../../applications/content/dtd/docbook.xsd" + xmlns="http://docbook.org/ns/docbook"> + The Entity Engine.
Entity Engine guide. @@ -44,5 +44,5 @@
- +
diff --git a/framework/example/webapp/birt/WEB-INF/birt.tld b/framework/example/webapp/birt/WEB-INF/birt.tld index 42dfd673d8..f00d7e8c41 100644 --- a/framework/example/webapp/birt/WEB-INF/birt.tld +++ b/framework/example/webapp/birt/WEB-INF/birt.tld @@ -21,54 +21,54 @@ specific language governing permissions and limitations under the License. --> - 1.0 - 1.2 - BIRT Tag Library - http://www.eclipse.org/birt/taglibs/birt.tld - - This Tag Library makes user develope JSP with BIRT Viewer component easily. - - + 1.0 + 1.2 + BIRT Tag Library + http://www.eclipse.org/birt/taglibs/birt.tld + + This Tag Library makes user develope JSP with BIRT Viewer component easily. + + - - viewer - org.eclipse.birt.report.taglib.ViewerTag - JSP - - The viewer tag is to specify how to import and control BIRT Report Viewer into JSP page. - This tag will use Ajax framework to retrieve report content. - + + viewer + org.eclipse.birt.report.taglib.ViewerTag + JSP + + The viewer tag is to specify how to import and control BIRT Report Viewer into JSP page. + This tag will use Ajax framework to retrieve report content. + - - id - true - true - - Specifies the current viewer id. It should be unique. - It can contain number,letter or underline. - - + + id + true + true + + Specifies the current viewer id. It should be unique. + It can contain number,letter or underline. + + pattern false true - Specifies which servlet pattern to be used to preview report. - Default value is frameset. - ( frameset or run ) + Specifies which servlet pattern to be used to preview report. + Default value is frameset. + ( frameset or run ) - + baseURL false true - Specifies base URL of BIRT viewer. - Default to the current context. + Specifies base URL of BIRT viewer. + Default to the current context. @@ -77,7 +77,7 @@ under the License. false true - Specifies the report title displayed at the top. + Specifies the report title displayed at the top. @@ -86,8 +86,8 @@ under the License. false true - Specifies whether the viewer occupies the whole page. - Default to false. + Specifies whether the viewer occupies the whole page. + Default to false. @@ -96,9 +96,9 @@ under the License. false true - Sets the IFrame style "scrolling ". - If isHostPage is true, ignore this attribute. - ( auto | yes | no ) + Sets the IFrame style "scrolling ". + If isHostPage is true, ignore this attribute. + ( auto | yes | no ) @@ -107,9 +107,9 @@ under the License. false true - Sets the style "position" of report container. - If isHostPage is true, ignore this attribute. - ( static | absolute | fixed | relative ) + Sets the style "position" of report container. + If isHostPage is true, ignore this attribute. + ( static | absolute | fixed | relative ) @@ -118,8 +118,8 @@ under the License. false true - Sets the style of report container. - If isHostPage is true, ignore this attribute. + Sets the style of report container. + If isHostPage is true, ignore this attribute. @@ -128,8 +128,8 @@ under the License. false true - Sets the height of report container in pixels. - If isHostPage is true, ignore this attribute. + Sets the height of report container in pixels. + If isHostPage is true, ignore this attribute. @@ -138,8 +138,8 @@ under the License. false true - Sets the width of report container in pixels. - If isHostPage is true, ignore this attribute. + Sets the width of report container in pixels. + If isHostPage is true, ignore this attribute. @@ -148,8 +148,8 @@ under the License. false true - Sets the top of report container in pixels. - If isHostPage is true, ignore this attribute. + Sets the top of report container in pixels. + If isHostPage is true, ignore this attribute. @@ -158,8 +158,8 @@ under the License. false true - Sets the left of report container in pixels. - If isHostPage is true, ignore this attribute. + Sets the left of report container in pixels. + If isHostPage is true, ignore this attribute. @@ -168,212 +168,212 @@ under the License. false true - Specifies whether displays the iframe border. - Default to no. - If isHostPage is true, ignore this attribute. - ( Yes | No ) + Specifies whether displays the iframe border. + Default to no. + If isHostPage is true, ignore this attribute. + ( Yes | No ) - - reportDesign - false - true - - Specifies the report design file name. - ( Absolute path, relative path or URL ) - - + + reportDesign + false + true + + Specifies the report design file name. + ( Absolute path, relative path or URL ) + + - - reportDocument - false - true - - Specifies the report document file name. - Noted: only support "file:" URL format. - ( Absolute path, relative path or URL ) - - + + reportDocument + false + true + + Specifies the report document file name. + Noted: only support "file:" URL format. + ( Absolute path, relative path or URL ) + + - - reportletId - false - true - - Specifies the instance id of reportlet. - The "reportDocument" attribute should be required. - Noted: frameset pattern doesn't support reportlet. - - - - - bookmark - false - true - - Specifies the targeted bookmark name. - - - - - locale - false - true - - Specifies the Locale information. - - + + reportletId + false + true + + Specifies the instance id of reportlet. + The "reportDocument" attribute should be required. + Noted: frameset pattern doesn't support reportlet. + + + + + bookmark + false + true + + Specifies the targeted bookmark name. + + + + + locale + false + true + + Specifies the Locale information. + + - - timeZone - false - true - - Specifies a time zone id. For example: "America/Los_Angeles" or "GMT+1" or "GMT+01:00". - - + + timeZone + false + true + + Specifies a time zone id. For example: "America/Los_Angeles" or "GMT+1" or "GMT+01:00". + + - - svg - false - true - - Specifies whether supports the SVG output format or not. - - + + svg + false + true + + Specifies whether supports the SVG output format or not. + + - - format - false - true - - Specifies the output format of report. - - + + format + false + true + + Specifies the output format of report. + + - - emitterId - false - true - - Specifies the emitter id for the report output. - - - - - pageOverflow - false - true - - Specifies the page overflow setting for the PDF format. - One of the following values: - 0 for "auto", 1 for "actual size", 2 for "fit to page". - - - - - rtl - false - true - - Specifies whether supports rtl page or not. - - - - - pageNum - false - true - - Specifies output page number when render document file. - - + + emitterId + false + true + + Specifies the emitter id for the report output. + + + + + pageOverflow + false + true + + Specifies the page overflow setting for the PDF format. + One of the following values: + 0 for "auto", 1 for "actual size", 2 for "fit to page". + + + + + rtl + false + true + + Specifies whether supports rtl page or not. + + + + + pageNum + false + true + + Specifies output page number when render document file. + + - - pageRange - false - true - - Specifies page range when render document file. - - - - - resourceFolder - false - true - - Specifies the referenced resource folder. - Default value is defined in web.xml. - - - - - forceOverwriteDocument - false - true - - Specifies whether forces to overwrite the generated document. - If allowPageBreak is false,ignore this attribute. - Default value is defined in web.xml. - - + + pageRange + false + true + + Specifies page range when render document file. + + + + + resourceFolder + false + true + + Specifies the referenced resource folder. + Default value is defined in web.xml. + + + + + forceOverwriteDocument + false + true + + Specifies whether forces to overwrite the generated document. + If allowPageBreak is false,ignore this attribute. + Default value is defined in web.xml. + + - - showTitle - false - true - - Specifies whether shows the report title. - Default to true. - - - - - showToolBar - false - true - - Specifies whether shows the toolbar. - Default to true. - - + + showTitle + false + true + + Specifies whether shows the report title. + Default to true. + + + + + showToolBar + false + true + + Specifies whether shows the toolbar. + Default to true. + + - - showNavigationBar - false - true - - Specifies whether shows the Navigation Bar. - If allowPageBreak is false,ignore this attribute. - Default to true. - - + + showNavigationBar + false + true + + Specifies whether shows the Navigation Bar. + If allowPageBreak is false,ignore this attribute. + Default to true. + + - - showParameterPage - false - true - - Specifies whether show the parameter dialog or not. - Default to true. - - + + showParameterPage + false + true + + Specifies whether show the parameter dialog or not. + Default to true. + + - - isReportlet - false - true - - Specifies whether render reportlet by bookmark. - Default to false. - - - - + + isReportlet + false + true + + Specifies whether render reportlet by bookmark. + Default to false. + + + + - + @@ -381,28 +381,28 @@ under the License. org.eclipse.birt.report.taglib.ReportTag JSP - The report tag can provide fast report preview without Ajax framework. - The report content can be output to web browser directly. + The report tag can provide fast report preview without Ajax framework. + The report content can be output to web browser directly. - - id - true - true - - Specifies the current viewer id. It should be unique. - It can contain number,letter or underline. - - - + + id + true + true + + Specifies the current viewer id. It should be unique. + It can contain number,letter or underline. + + + baseURL false true - Specifies base URL of BIRT viewer. - Default to the current context. - If report container is DIV, ignore this attribute. + Specifies base URL of BIRT viewer. + Default to the current context. + If report container is DIV, ignore this attribute. @@ -411,8 +411,8 @@ under the License. false true - Specifies whether the viewer occupies the whole page. - Default to false. + Specifies whether the viewer occupies the whole page. + Default to false. @@ -421,9 +421,9 @@ under the License. false true - Sets the DIV/IFrame style "scrolling ". - If isHostPage is true, ignore this attribute. - ( auto | yes | no ) + Sets the DIV/IFrame style "scrolling ". + If isHostPage is true, ignore this attribute. + ( auto | yes | no ) @@ -432,9 +432,9 @@ under the License. false true - Sets the style "position" of report container. - If isHostPage is true, ignore this attribute. - ( static | absolute | fixed | relative ) + Sets the style "position" of report container. + If isHostPage is true, ignore this attribute. + ( static | absolute | fixed | relative ) @@ -443,8 +443,8 @@ under the License. false true - Sets the style of report container. - If isHostPage is true, ignore this attribute. + Sets the style of report container. + If isHostPage is true, ignore this attribute. @@ -453,8 +453,8 @@ under the License. false true - Sets the height of report container in pixels. - If isHostPage is true, ignore this attribute. + Sets the height of report container in pixels. + If isHostPage is true, ignore this attribute. @@ -463,8 +463,8 @@ under the License. false true - Sets the width of report container in pixels. - If isHostPage is true, ignore this attribute. + Sets the width of report container in pixels. + If isHostPage is true, ignore this attribute. @@ -473,8 +473,8 @@ under the License. false true - Sets the top of report container in pixels. - If isHostPage is true, ignore this attribute. + Sets the top of report container in pixels. + If isHostPage is true, ignore this attribute. @@ -483,8 +483,8 @@ under the License. false true - Sets the left of report container in pixels. - If isHostPage is true, ignore this attribute. + Sets the left of report container in pixels. + If isHostPage is true, ignore this attribute. @@ -493,179 +493,179 @@ under the License. false true - Specifies whether displays the iframe border. - Available when user IFrame. - Default to no. - ( Yes | No ) + Specifies whether displays the iframe border. + Available when user IFrame. + Default to no. + ( Yes | No ) - - reportDesign - false - true - - Specifies the report design file name. - ( Absolute path, relative path or URL ) - - + + reportDesign + false + true + + Specifies the report design file name. + ( Absolute path, relative path or URL ) + + - - reportDocument - false - true - - Specifies the report document file name. - Noted: only support "file:" URL format. - ( Absolute path, relative path or URL ) - - + + reportDocument + false + true + + Specifies the report document file name. + Noted: only support "file:" URL format. + ( Absolute path, relative path or URL ) + + - - reportletId - false - true - - Specifies the instance id of reportlet. - The "reportDocument" attribute should be required. - - - - - bookmark - false - true - - Specifies the targeted bookmark name. - - - - - locale - false - true - - Specifies the Locale information. - - + + reportletId + false + true + + Specifies the instance id of reportlet. + The "reportDocument" attribute should be required. + + + + + bookmark + false + true + + Specifies the targeted bookmark name. + + + + + locale + false + true + + Specifies the Locale information. + + - - timeZone - false - true - - Specifies a time zone id. For example: "America/Los_Angeles" or "GMT+1" or "GMT+01:00". - - + + timeZone + false + true + + Specifies a time zone id. For example: "America/Los_Angeles" or "GMT+1" or "GMT+01:00". + + - - svg - false - true - - Specifies whether supports the SVG output format or not. - - + + svg + false + true + + Specifies whether supports the SVG output format or not. + + - - format - false - true - - Specifies the output format of report. - - - - - emitterId - false - true - - Specifies the emitter id for the report output. - - + + format + false + true + + Specifies the output format of report. + + + + + emitterId + false + true + + Specifies the emitter id for the report output. + + - - pageOverflow - false - true - - Specifies the page overflow setting for the PDF format. - One of the following values: - 0 for "auto", 1 for "actual size", 2 for "fit to page". - - - - - rtl - false - true - - Specifies whether supports rtl page or not. - - + + pageOverflow + false + true + + Specifies the page overflow setting for the PDF format. + One of the following values: + 0 for "auto", 1 for "actual size", 2 for "fit to page". + + + + + rtl + false + true + + Specifies whether supports rtl page or not. + + - - showParameterPage - false - true - - Specifies whether show the parameter dialog or not. - Default to true. - If report container is DIV, ignore this attribute. - - - - - resourceFolder - false - true - - Specifies the referenced resource folder. - Default value is defined in web.xml. - - - - - reportContainer - false - true - - Specifies iframe or div as report container. - Default to iframe. - ( iframe | div ) - - + + showParameterPage + false + true + + Specifies whether show the parameter dialog or not. + Default to true. + If report container is DIV, ignore this attribute. + + + + + resourceFolder + false + true + + Specifies the referenced resource folder. + Default value is defined in web.xml. + + + + + reportContainer + false + true + + Specifies iframe or div as report container. + Default to iframe. + ( iframe | div ) + + - - pageNum - false - true - - Specifies output page number when render document file. - - + + pageNum + false + true + + Specifies output page number when render document file. + + - - pageRange - false - true - - Specifies page range when render document file. - - + + pageRange + false + true + + Specifies page range when render document file. + + - - isReportlet - false - true - - Specifies whether render reportlet by bookmark. - Default to false. - - - - + + isReportlet + false + true + + Specifies whether render reportlet by bookmark. + Default to false. + + + + @@ -675,14 +675,14 @@ under the License. org.eclipse.birt.report.taglib.ParamTag JSP - The param tag specifies the parameters defined in report design file. + The param tag specifies the parameters defined in report design file. name true true - Specifies the report parameter name. + Specifies the report parameter name. @@ -690,7 +690,7 @@ under the License. false true - Specifies the report parameter pattern format. + Specifies the report parameter pattern format. @@ -698,7 +698,7 @@ under the License. false true - Specifies the report parameter value. If doesn't set, value is null. + Specifies the report parameter value. If doesn't set, value is null. @@ -706,7 +706,7 @@ under the License. false true - Specifies the report parameter display text. + Specifies the report parameter display text. @@ -714,8 +714,8 @@ under the License. false true - Specifies the delimiter for multiple values. - Defaults to pipe "|". + Specifies the delimiter for multiple values. + Defaults to pipe "|". @@ -723,7 +723,7 @@ under the License. false true - Specifies whether the report parameter value is a locale/format related string. + Specifies whether the report parameter value is a locale/format related string. @@ -736,14 +736,14 @@ under the License. org.eclipse.birt.report.taglib.ParamValueTag JSP - The param value tag specifies multiple values for a given param tag. + The param value tag specifies multiple values for a given param tag. value false true - Specifies the report parameter value. If doesn't set, value is null. + Specifies the report parameter value. If doesn't set, value is null. @@ -751,7 +751,7 @@ under the License. false true - Specifies the report parameter display text. + Specifies the report parameter display text. @@ -764,27 +764,27 @@ under the License. org.eclipse.birt.report.taglib.RequesterTag JSP - The parameterPage tag can help developers to display BIRT parameter page or create a user-defined parameter page. - This tag can collect these parameters and submit to BIRT servlet to handle request. + The parameterPage tag can help developers to display BIRT parameter page or create a user-defined parameter page. + This tag can collect these parameters and submit to BIRT servlet to handle request. - id - true - true - - Specifies the parameter page id.It should be unique. - It can contain number,letter or underline. - - + id + true + true + + Specifies the parameter page id.It should be unique. + It can contain number,letter or underline. + + name false true - Specifies the parameter page name. - If attribute 'isCustom' is true, this name should be required and unique. + Specifies the parameter page name. + If attribute 'isCustom' is true, this name should be required and unique. @@ -793,9 +793,9 @@ under the License. false true - Specifies whether uses the user-defined parameter page. - If false, use the BIRT parameter dialog. - Default to false. + Specifies whether uses the user-defined parameter page. + If false, use the BIRT parameter dialog. + Default to false. @@ -804,27 +804,27 @@ under the License. false true - Specifies the report title displayed at the top. + Specifies the report title displayed at the top. - + baseURL false true - Specifies base URL of BIRT viewer. - Default to the current context. + Specifies base URL of BIRT viewer. + Default to the current context. - - + + scrolling false true - Sets the DIV/IFrame style "scrolling ". - ( auto | yes | no ) + Sets the DIV/IFrame style "scrolling ". + ( auto | yes | no ) @@ -833,8 +833,8 @@ under the License. false true - Sets the style "position" of parameter page. - ( static | absolute | fixed | relative ) + Sets the style "position" of parameter page. + ( static | absolute | fixed | relative ) @@ -843,7 +843,7 @@ under the License. false true - Sets the style of parameter page. + Sets the style of parameter page. @@ -852,7 +852,7 @@ under the License. false true - Sets the height of parameter page in pixels. + Sets the height of parameter page in pixels. @@ -861,7 +861,7 @@ under the License. false true - Sets the width of parameter page in pixels. + Sets the width of parameter page in pixels. @@ -870,7 +870,7 @@ under the License. false true - Sets the top of parameter page in pixels. + Sets the top of parameter page in pixels. @@ -879,7 +879,7 @@ under the License. false true - Sets the left of parameter page in pixels. + Sets the left of parameter page in pixels. @@ -888,202 +888,202 @@ under the License. false true - Specifies whether displays the iframe border. - Default to no. - If set "isCustom" to true, ignore this attribute. - ( Yes | No ) + Specifies whether displays the iframe border. + Default to no. + If set "isCustom" to true, ignore this attribute. + ( Yes | No ) - - reportDesign - false - true - - Specifies the report design file name. - ( Absolute path, relative path or URL ) - - + + reportDesign + false + true + + Specifies the report design file name. + ( Absolute path, relative path or URL ) + + - - reportDocument - false - true - - Specifies the report document file name. - Noted: only support "file:" URL format. - ( Absolute path, relative path or URL ) - - + + reportDocument + false + true + + Specifies the report document file name. + Noted: only support "file:" URL format. + ( Absolute path, relative path or URL ) + + - - reportletId - false - true - - Specifies the instance id of reportlet. - The "reportDocument" attribute should be required. - Noted: frameset pattern doesn't support reportlet. - - + + reportletId + false + true + + Specifies the instance id of reportlet. + The "reportDocument" attribute should be required. + Noted: frameset pattern doesn't support reportlet. + + - - pattern - false - true - - Specifies the servlet pattern for request submit. - BIRT supports three patterns: frameset, run and preview. - Can refer to the user-defined servlet pattern. - Default to frameset. - - + + pattern + false + true + + Specifies the servlet pattern for request submit. + BIRT supports three patterns: frameset, run and preview. + Can refer to the user-defined servlet pattern. + Default to frameset. + + - - target - false - true - - Specifies the target window for request submit. - - - - - bookmark - false - true - - Specifies the targeted bookmark name. - - - - - locale - false - true - - Specifies the Locale information. - - + + target + false + true + + Specifies the target window for request submit. + + + + + bookmark + false + true + + Specifies the targeted bookmark name. + + + + + locale + false + true + + Specifies the Locale information. + + - - timeZone - false - true - - Specifies a time zone id. For example: "America/Los_Angeles" or "GMT+1" or "GMT+01:00". - - + + timeZone + false + true + + Specifies a time zone id. For example: "America/Los_Angeles" or "GMT+1" or "GMT+01:00". + + - - svg - false - true - - Specifies whether supports the SVG output format or not. - - + + svg + false + true + + Specifies whether supports the SVG output format or not. + + - - format - false - true - - Specifies the output format of report. - - - - - emitterId - false - true - - Specifies the emitter id for the report output. - - - - - pageOverflow - false - true - - Specifies the page overflow setting for the PDF format. - One of the following values: - 0 for "auto", 1 for "actual size", 2 for "fit to page". - - + + format + false + true + + Specifies the output format of report. + + + + + emitterId + false + true + + Specifies the emitter id for the report output. + + + + + pageOverflow + false + true + + Specifies the page overflow setting for the PDF format. + One of the following values: + 0 for "auto", 1 for "actual size", 2 for "fit to page". + + - - rtl - false - true - - Specifies whether supports rtl page or not. - - - - - resourceFolder - false - true - - Specifies the referenced resource folder. - Default value is defined in web.xml. - - - - - forceOverwriteDocument - false - true - - Specifies whether forces to overwrite the generated document. - If allowPageBreak is false,ignore this attribute. - Default value is defined in web.xml. - - + + rtl + false + true + + Specifies whether supports rtl page or not. + + + + + resourceFolder + false + true + + Specifies the referenced resource folder. + Default value is defined in web.xml. + + + + + forceOverwriteDocument + false + true + + Specifies whether forces to overwrite the generated document. + If allowPageBreak is false,ignore this attribute. + Default value is defined in web.xml. + + - - showTitle - false - true - - Specifies whether shows the report title. - Default to true. - - - - - showToolBar - false - true - - Specifies whether shows the toolbar. - Default to true. - - + + showTitle + false + true + + Specifies whether shows the report title. + Default to true. + + + + + showToolBar + false + true + + Specifies whether shows the toolbar. + Default to true. + + - - showNavigationBar - false - true - - Specifies whether shows the Navigation Bar. - If allowPageBreak is false,ignore this attribute. - Default to true. - - + + showNavigationBar + false + true + + Specifies whether shows the Navigation Bar. + If allowPageBreak is false,ignore this attribute. + Default to true. + + - - isReportlet - false - true - - Specifies whether render reportlet by bookmark. - Default to false. - - - + + isReportlet + false + true + + Specifies whether render reportlet by bookmark. + Default to false. + + + @@ -1094,15 +1094,15 @@ under the License. org.eclipse.birt.report.taglib.ParamDefTag JSP - The param tag is used to generate html code for defined parameter in ParameterPage tag. + The param tag is used to generate html code for defined parameter in ParameterPage tag. id true true - Specifies the id of parameter control.It should be unique. - It can contain number,letter or underline. + Specifies the id of parameter control.It should be unique. + It can contain number,letter or underline. @@ -1110,7 +1110,7 @@ under the License. true true - Specifies the report parameter name. + Specifies the report parameter name. @@ -1118,8 +1118,8 @@ under the License. false true - Specifies the report parameter pattern format. - It is used to parse defined parameter value string. + Specifies the report parameter pattern format. + It is used to parse defined parameter value string. @@ -1127,7 +1127,7 @@ under the License. false true - Specifies the report parameter value. If doesn't set, use default value. + Specifies the report parameter value. If doesn't set, use default value. @@ -1135,7 +1135,7 @@ under the License. false true - Specifies the report parameter display text. + Specifies the report parameter display text. @@ -1143,8 +1143,8 @@ under the License. false true - Specifies whether the report parameter value is a locale/format related string. - It is used to parse defined parameter value string. + Specifies whether the report parameter value is a locale/format related string. + It is used to parse defined parameter value string. @@ -1152,7 +1152,7 @@ under the License. false true - Specifies the title attribute of parameter control. + Specifies the title attribute of parameter control. @@ -1160,7 +1160,7 @@ under the License. false true - Specifies the css class attribute of parameter control. + Specifies the css class attribute of parameter control. @@ -1168,8 +1168,8 @@ under the License. false true - Specifies the parameter control style. + Specifies the parameter control style. - + \ No newline at end of file diff --git a/framework/example/webapp/birt/WEB-INF/server-config.wsdd b/framework/example/webapp/birt/WEB-INF/server-config.wsdd index 96ba770c1a..768e7905bb 100644 --- a/framework/example/webapp/birt/WEB-INF/server-config.wsdd +++ b/framework/example/webapp/birt/WEB-INF/server-config.wsdd @@ -28,52 +28,52 @@ under the License. xmlns="http://xml.apache.org/axis/wsdd/" xmlns:java="http://xml.apache.org/axis/wsdd/providers/java"> - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + @@ -923,48 +923,48 @@ under the License. /> http://schemas.eclipse.org/birt - - - - - - http://xml.apache.org/axis/wsdd/ - - - - - - - - - - - - - - - - - - - + + + + + + http://xml.apache.org/axis/wsdd/ + + + + + + + + + + + + + + + + + + + diff --git a/framework/example/webapp/example/WEB-INF/birt.tld b/framework/example/webapp/example/WEB-INF/birt.tld index 42dfd673d8..f00d7e8c41 100644 --- a/framework/example/webapp/example/WEB-INF/birt.tld +++ b/framework/example/webapp/example/WEB-INF/birt.tld @@ -21,54 +21,54 @@ specific language governing permissions and limitations under the License. --> - 1.0 - 1.2 - BIRT Tag Library - http://www.eclipse.org/birt/taglibs/birt.tld - - This Tag Library makes user develope JSP with BIRT Viewer component easily. - - + 1.0 + 1.2 + BIRT Tag Library + http://www.eclipse.org/birt/taglibs/birt.tld + + This Tag Library makes user develope JSP with BIRT Viewer component easily. + + - - viewer - org.eclipse.birt.report.taglib.ViewerTag - JSP - - The viewer tag is to specify how to import and control BIRT Report Viewer into JSP page. - This tag will use Ajax framework to retrieve report content. - + + viewer + org.eclipse.birt.report.taglib.ViewerTag + JSP + + The viewer tag is to specify how to import and control BIRT Report Viewer into JSP page. + This tag will use Ajax framework to retrieve report content. + - - id - true - true - - Specifies the current viewer id. It should be unique. - It can contain number,letter or underline. - - + + id + true + true + + Specifies the current viewer id. It should be unique. + It can contain number,letter or underline. + + pattern false true - Specifies which servlet pattern to be used to preview report. - Default value is frameset. - ( frameset or run ) + Specifies which servlet pattern to be used to preview report. + Default value is frameset. + ( frameset or run ) - + baseURL false true - Specifies base URL of BIRT viewer. - Default to the current context. + Specifies base URL of BIRT viewer. + Default to the current context. @@ -77,7 +77,7 @@ under the License. false true - Specifies the report title displayed at the top. + Specifies the report title displayed at the top. @@ -86,8 +86,8 @@ under the License. false true - Specifies whether the viewer occupies the whole page. - Default to false. + Specifies whether the viewer occupies the whole page. + Default to false. @@ -96,9 +96,9 @@ under the License. false true - Sets the IFrame style "scrolling ". - If isHostPage is true, ignore this attribute. - ( auto | yes | no ) + Sets the IFrame style "scrolling ". + If isHostPage is true, ignore this attribute. + ( auto | yes | no ) @@ -107,9 +107,9 @@ under the License. false true - Sets the style "position" of report container. - If isHostPage is true, ignore this attribute. - ( static | absolute | fixed | relative ) + Sets the style "position" of report container. + If isHostPage is true, ignore this attribute. + ( static | absolute | fixed | relative ) @@ -118,8 +118,8 @@ under the License. false true - Sets the style of report container. - If isHostPage is true, ignore this attribute. + Sets the style of report container. + If isHostPage is true, ignore this attribute. @@ -128,8 +128,8 @@ under the License. false true - Sets the height of report container in pixels. - If isHostPage is true, ignore this attribute. + Sets the height of report container in pixels. + If isHostPage is true, ignore this attribute. @@ -138,8 +138,8 @@ under the License. false true - Sets the width of report container in pixels. - If isHostPage is true, ignore this attribute. + Sets the width of report container in pixels. + If isHostPage is true, ignore this attribute. @@ -148,8 +148,8 @@ under the License. false true - Sets the top of report container in pixels. - If isHostPage is true, ignore this attribute. + Sets the top of report container in pixels. + If isHostPage is true, ignore this attribute. @@ -158,8 +158,8 @@ under the License. false true - Sets the left of report container in pixels. - If isHostPage is true, ignore this attribute. + Sets the left of report container in pixels. + If isHostPage is true, ignore this attribute. @@ -168,212 +168,212 @@ under the License. false true - Specifies whether displays the iframe border. - Default to no. - If isHostPage is true, ignore this attribute. - ( Yes | No ) + Specifies whether displays the iframe border. + Default to no. + If isHostPage is true, ignore this attribute. + ( Yes | No ) - - reportDesign - false - true - - Specifies the report design file name. - ( Absolute path, relative path or URL ) - - + + reportDesign + false + true + + Specifies the report design file name. + ( Absolute path, relative path or URL ) + + - - reportDocument - false - true - - Specifies the report document file name. - Noted: only support "file:" URL format. - ( Absolute path, relative path or URL ) - - + + reportDocument + false + true + + Specifies the report document file name. + Noted: only support "file:" URL format. + ( Absolute path, relative path or URL ) + + - - reportletId - false - true - - Specifies the instance id of reportlet. - The "reportDocument" attribute should be required. - Noted: frameset pattern doesn't support reportlet. - - - - - bookmark - false - true - - Specifies the targeted bookmark name. - - - - - locale - false - true - - Specifies the Locale information. - - + + reportletId + false + true + + Specifies the instance id of reportlet. + The "reportDocument" attribute should be required. + Noted: frameset pattern doesn't support reportlet. + + + + + bookmark + false + true + + Specifies the targeted bookmark name. + + + + + locale + false + true + + Specifies the Locale information. + + - - timeZone - false - true - - Specifies a time zone id. For example: "America/Los_Angeles" or "GMT+1" or "GMT+01:00". - - + + timeZone + false + true + + Specifies a time zone id. For example: "America/Los_Angeles" or "GMT+1" or "GMT+01:00". + + - - svg - false - true - - Specifies whether supports the SVG output format or not. - - + + svg + false + true + + Specifies whether supports the SVG output format or not. + + - - format - false - true - - Specifies the output format of report. - - + + format + false + true + + Specifies the output format of report. + + - - emitterId - false - true - - Specifies the emitter id for the report output. - - - - - pageOverflow - false - true - - Specifies the page overflow setting for the PDF format. - One of the following values: - 0 for "auto", 1 for "actual size", 2 for "fit to page". - - - - - rtl - false - true - - Specifies whether supports rtl page or not. - - - - - pageNum - false - true - - Specifies output page number when render document file. - - + + emitterId + false + true + + Specifies the emitter id for the report output. + + + + + pageOverflow + false + true + + Specifies the page overflow setting for the PDF format. + One of the following values: + 0 for "auto", 1 for "actual size", 2 for "fit to page". + + + + + rtl + false + true + + Specifies whether supports rtl page or not. + + + + + pageNum + false + true + + Specifies output page number when render document file. + + - - pageRange - false - true - - Specifies page range when render document file. - - - - - resourceFolder - false - true - - Specifies the referenced resource folder. - Default value is defined in web.xml. - - - - - forceOverwriteDocument - false - true - - Specifies whether forces to overwrite the generated document. - If allowPageBreak is false,ignore this attribute. - Default value is defined in web.xml. - - + + pageRange + false + true + + Specifies page range when render document file. + + + + + resourceFolder + false + true + + Specifies the referenced resource folder. + Default value is defined in web.xml. + + + + + forceOverwriteDocument + false + true + + Specifies whether forces to overwrite the generated document. + If allowPageBreak is false,ignore this attribute. + Default value is defined in web.xml. + + - - showTitle - false - true - - Specifies whether shows the report title. - Default to true. - - - - - showToolBar - false - true - - Specifies whether shows the toolbar. - Default to true. - - + + showTitle + false + true + + Specifies whether shows the report title. + Default to true. + + + + + showToolBar + false + true + + Specifies whether shows the toolbar. + Default to true. + + - - showNavigationBar - false - true - - Specifies whether shows the Navigation Bar. - If allowPageBreak is false,ignore this attribute. - Default to true. - - + + showNavigationBar + false + true + + Specifies whether shows the Navigation Bar. + If allowPageBreak is false,ignore this attribute. + Default to true. + + - - showParameterPage - false - true - - Specifies whether show the parameter dialog or not. - Default to true. - - + + showParameterPage + false + true + + Specifies whether show the parameter dialog or not. + Default to true. + + - - isReportlet - false - true - - Specifies whether render reportlet by bookmark. - Default to false. - - - - + + isReportlet + false + true + + Specifies whether render reportlet by bookmark. + Default to false. + + + + - + @@ -381,28 +381,28 @@ under the License. org.eclipse.birt.report.taglib.ReportTag JSP - The report tag can provide fast report preview without Ajax framework. - The report content can be output to web browser directly. + The report tag can provide fast report preview without Ajax framework. + The report content can be output to web browser directly. - - id - true - true - - Specifies the current viewer id. It should be unique. - It can contain number,letter or underline. - - - + + id + true + true + + Specifies the current viewer id. It should be unique. + It can contain number,letter or underline. + + + baseURL false true - Specifies base URL of BIRT viewer. - Default to the current context. - If report container is DIV, ignore this attribute. + Specifies base URL of BIRT viewer. + Default to the current context. + If report container is DIV, ignore this attribute. @@ -411,8 +411,8 @@ under the License. false true - Specifies whether the viewer occupies the whole page. - Default to false. + Specifies whether the viewer occupies the whole page. + Default to false. @@ -421,9 +421,9 @@ under the License. false true - Sets the DIV/IFrame style "scrolling ". - If isHostPage is true, ignore this attribute. - ( auto | yes | no ) + Sets the DIV/IFrame style "scrolling ". + If isHostPage is true, ignore this attribute. + ( auto | yes | no ) @@ -432,9 +432,9 @@ under the License. false true - Sets the style "position" of report container. - If isHostPage is true, ignore this attribute. - ( static | absolute | fixed | relative ) + Sets the style "position" of report container. + If isHostPage is true, ignore this attribute. + ( static | absolute | fixed | relative ) @@ -443,8 +443,8 @@ under the License. false true - Sets the style of report container. - If isHostPage is true, ignore this attribute. + Sets the style of report container. + If isHostPage is true, ignore this attribute. @@ -453,8 +453,8 @@ under the License. false true - Sets the height of report container in pixels. - If isHostPage is true, ignore this attribute. + Sets the height of report container in pixels. + If isHostPage is true, ignore this attribute. @@ -463,8 +463,8 @@ under the License. false true - Sets the width of report container in pixels. - If isHostPage is true, ignore this attribute. + Sets the width of report container in pixels. + If isHostPage is true, ignore this attribute. @@ -473,8 +473,8 @@ under the License. false true - Sets the top of report container in pixels. - If isHostPage is true, ignore this attribute. + Sets the top of report container in pixels. + If isHostPage is true, ignore this attribute. @@ -483,8 +483,8 @@ under the License. false true - Sets the left of report container in pixels. - If isHostPage is true, ignore this attribute. + Sets the left of report container in pixels. + If isHostPage is true, ignore this attribute. @@ -493,179 +493,179 @@ under the License. false true - Specifies whether displays the iframe border. - Available when user IFrame. - Default to no. - ( Yes | No ) + Specifies whether displays the iframe border. + Available when user IFrame. + Default to no. + ( Yes | No ) - - reportDesign - false - true - - Specifies the report design file name. - ( Absolute path, relative path or URL ) - - + + reportDesign + false + true + + Specifies the report design file name. + ( Absolute path, relative path or URL ) + + - - reportDocument - false - true - - Specifies the report document file name. - Noted: only support "file:" URL format. - ( Absolute path, relative path or URL ) - - + + reportDocument + false + true + + Specifies the report document file name. + Noted: only support "file:" URL format. + ( Absolute path, relative path or URL ) + + - - reportletId - false - true - - Specifies the instance id of reportlet. - The "reportDocument" attribute should be required. - - - - - bookmark - false - true - - Specifies the targeted bookmark name. - - - - - locale - false - true - - Specifies the Locale information. - - + + reportletId + false + true + + Specifies the instance id of reportlet. + The "reportDocument" attribute should be required. + + + + + bookmark + false + true + + Specifies the targeted bookmark name. + + + + + locale + false + true + + Specifies the Locale information. + + - - timeZone - false - true - - Specifies a time zone id. For example: "America/Los_Angeles" or "GMT+1" or "GMT+01:00". - - + + timeZone + false + true + + Specifies a time zone id. For example: "America/Los_Angeles" or "GMT+1" or "GMT+01:00". + + - - svg - false - true - - Specifies whether supports the SVG output format or not. - - + + svg + false + true + + Specifies whether supports the SVG output format or not. + + - - format - false - true - - Specifies the output format of report. - - - - - emitterId - false - true - - Specifies the emitter id for the report output. - - + + format + false + true + + Specifies the output format of report. + + + + + emitterId + false + true + + Specifies the emitter id for the report output. + + - - pageOverflow - false - true - - Specifies the page overflow setting for the PDF format. - One of the following values: - 0 for "auto", 1 for "actual size", 2 for "fit to page". - - - - - rtl - false - true - - Specifies whether supports rtl page or not. - - + + pageOverflow + false + true + + Specifies the page overflow setting for the PDF format. + One of the following values: + 0 for "auto", 1 for "actual size", 2 for "fit to page". + + + + + rtl + false + true + + Specifies whether supports rtl page or not. + + - - showParameterPage - false - true - - Specifies whether show the parameter dialog or not. - Default to true. - If report container is DIV, ignore this attribute. - - - - - resourceFolder - false - true - - Specifies the referenced resource folder. - Default value is defined in web.xml. - - - - - reportContainer - false - true - - Specifies iframe or div as report container. - Default to iframe. - ( iframe | div ) - - + + showParameterPage + false + true + + Specifies whether show the parameter dialog or not. + Default to true. + If report container is DIV, ignore this attribute. + + + + + resourceFolder + false + true + + Specifies the referenced resource folder. + Default value is defined in web.xml. + + + + + reportContainer + false + true + + Specifies iframe or div as report container. + Default to iframe. + ( iframe | div ) + + - - pageNum - false - true - - Specifies output page number when render document file. - - + + pageNum + false + true + + Specifies output page number when render document file. + + - - pageRange - false - true - - Specifies page range when render document file. - - + + pageRange + false + true + + Specifies page range when render document file. + + - - isReportlet - false - true - - Specifies whether render reportlet by bookmark. - Default to false. - - - - + + isReportlet + false + true + + Specifies whether render reportlet by bookmark. + Default to false. + + + + @@ -675,14 +675,14 @@ under the License. org.eclipse.birt.report.taglib.ParamTag JSP - The param tag specifies the parameters defined in report design file. + The param tag specifies the parameters defined in report design file. name true true - Specifies the report parameter name. + Specifies the report parameter name. @@ -690,7 +690,7 @@ under the License. false true - Specifies the report parameter pattern format. + Specifies the report parameter pattern format. @@ -698,7 +698,7 @@ under the License. false true - Specifies the report parameter value. If doesn't set, value is null. + Specifies the report parameter value. If doesn't set, value is null. @@ -706,7 +706,7 @@ under the License. false true - Specifies the report parameter display text. + Specifies the report parameter display text. @@ -714,8 +714,8 @@ under the License. false true - Specifies the delimiter for multiple values. - Defaults to pipe "|". + Specifies the delimiter for multiple values. + Defaults to pipe "|". @@ -723,7 +723,7 @@ under the License. false true - Specifies whether the report parameter value is a locale/format related string. + Specifies whether the report parameter value is a locale/format related string. @@ -736,14 +736,14 @@ under the License. org.eclipse.birt.report.taglib.ParamValueTag JSP - The param value tag specifies multiple values for a given param tag. + The param value tag specifies multiple values for a given param tag. value false true - Specifies the report parameter value. If doesn't set, value is null. + Specifies the report parameter value. If doesn't set, value is null. @@ -751,7 +751,7 @@ under the License. false true - Specifies the report parameter display text. + Specifies the report parameter display text. @@ -764,27 +764,27 @@ under the License. org.eclipse.birt.report.taglib.RequesterTag JSP - The parameterPage tag can help developers to display BIRT parameter page or create a user-defined parameter page. - This tag can collect these parameters and submit to BIRT servlet to handle request. + The parameterPage tag can help developers to display BIRT parameter page or create a user-defined parameter page. + This tag can collect these parameters and submit to BIRT servlet to handle request. - id - true - true - - Specifies the parameter page id.It should be unique. - It can contain number,letter or underline. - - + id + true + true + + Specifies the parameter page id.It should be unique. + It can contain number,letter or underline. + + name false true - Specifies the parameter page name. - If attribute 'isCustom' is true, this name should be required and unique. + Specifies the parameter page name. + If attribute 'isCustom' is true, this name should be required and unique. @@ -793,9 +793,9 @@ under the License. false true - Specifies whether uses the user-defined parameter page. - If false, use the BIRT parameter dialog. - Default to false. + Specifies whether uses the user-defined parameter page. + If false, use the BIRT parameter dialog. + Default to false. @@ -804,27 +804,27 @@ under the License. false true - Specifies the report title displayed at the top. + Specifies the report title displayed at the top. - + baseURL false true - Specifies base URL of BIRT viewer. - Default to the current context. + Specifies base URL of BIRT viewer. + Default to the current context. - - + + scrolling false true - Sets the DIV/IFrame style "scrolling ". - ( auto | yes | no ) + Sets the DIV/IFrame style "scrolling ". + ( auto | yes | no ) @@ -833,8 +833,8 @@ under the License. false true - Sets the style "position" of parameter page. - ( static | absolute | fixed | relative ) + Sets the style "position" of parameter page. + ( static | absolute | fixed | relative ) @@ -843,7 +843,7 @@ under the License. false true - Sets the style of parameter page. + Sets the style of parameter page. @@ -852,7 +852,7 @@ under the License. false true - Sets the height of parameter page in pixels. + Sets the height of parameter page in pixels. @@ -861,7 +861,7 @@ under the License. false true - Sets the width of parameter page in pixels. + Sets the width of parameter page in pixels. @@ -870,7 +870,7 @@ under the License. false true - Sets the top of parameter page in pixels. + Sets the top of parameter page in pixels. @@ -879,7 +879,7 @@ under the License. false true - Sets the left of parameter page in pixels. + Sets the left of parameter page in pixels. @@ -888,202 +888,202 @@ under the License. false true - Specifies whether displays the iframe border. - Default to no. - If set "isCustom" to true, ignore this attribute. - ( Yes | No ) + Specifies whether displays the iframe border. + Default to no. + If set "isCustom" to true, ignore this attribute. + ( Yes | No ) - - reportDesign - false - true - - Specifies the report design file name. - ( Absolute path, relative path or URL ) - - + + reportDesign + false + true + + Specifies the report design file name. + ( Absolute path, relative path or URL ) + + - - reportDocument - false - true - - Specifies the report document file name. - Noted: only support "file:" URL format. - ( Absolute path, relative path or URL ) - - + + reportDocument + false + true + + Specifies the report document file name. + Noted: only support "file:" URL format. + ( Absolute path, relative path or URL ) + + - - reportletId - false - true - - Specifies the instance id of reportlet. - The "reportDocument" attribute should be required. - Noted: frameset pattern doesn't support reportlet. - - + + reportletId + false + true + + Specifies the instance id of reportlet. + The "reportDocument" attribute should be required. + Noted: frameset pattern doesn't support reportlet. + + - - pattern - false - true - - Specifies the servlet pattern for request submit. - BIRT supports three patterns: frameset, run and preview. - Can refer to the user-defined servlet pattern. - Default to frameset. - - + + pattern + false + true + + Specifies the servlet pattern for request submit. + BIRT supports three patterns: frameset, run and preview. + Can refer to the user-defined servlet pattern. + Default to frameset. + + - - target - false - true - - Specifies the target window for request submit. - - - - - bookmark - false - true - - Specifies the targeted bookmark name. - - - - - locale - false - true - - Specifies the Locale information. - - + + target + false + true + + Specifies the target window for request submit. + + + + + bookmark + false + true + + Specifies the targeted bookmark name. + + + + + locale + false + true + + Specifies the Locale information. + + - - timeZone - false - true - - Specifies a time zone id. For example: "America/Los_Angeles" or "GMT+1" or "GMT+01:00". - - + + timeZone + false + true + + Specifies a time zone id. For example: "America/Los_Angeles" or "GMT+1" or "GMT+01:00". + + - - svg - false - true - - Specifies whether supports the SVG output format or not. - - + + svg + false + true + + Specifies whether supports the SVG output format or not. + + - - format - false - true - - Specifies the output format of report. - - - - - emitterId - false - true - - Specifies the emitter id for the report output. - - - - - pageOverflow - false - true - - Specifies the page overflow setting for the PDF format. - One of the following values: - 0 for "auto", 1 for "actual size", 2 for "fit to page". - - + + format + false + true + + Specifies the output format of report. + + + + + emitterId + false + true + + Specifies the emitter id for the report output. + + + + + pageOverflow + false + true + + Specifies the page overflow setting for the PDF format. + One of the following values: + 0 for "auto", 1 for "actual size", 2 for "fit to page". + + - - rtl - false - true - - Specifies whether supports rtl page or not. - - - - - resourceFolder - false - true - - Specifies the referenced resource folder. - Default value is defined in web.xml. - - - - - forceOverwriteDocument - false - true - - Specifies whether forces to overwrite the generated document. - If allowPageBreak is false,ignore this attribute. - Default value is defined in web.xml. - - + + rtl + false + true + + Specifies whether supports rtl page or not. + + + + + resourceFolder + false + true + + Specifies the referenced resource folder. + Default value is defined in web.xml. + + + + + forceOverwriteDocument + false + true + + Specifies whether forces to overwrite the generated document. + If allowPageBreak is false,ignore this attribute. + Default value is defined in web.xml. + + - - showTitle - false - true - - Specifies whether shows the report title. - Default to true. - - - - - showToolBar - false - true - - Specifies whether shows the toolbar. - Default to true. - - + + showTitle + false + true + + Specifies whether shows the report title. + Default to true. + + + + + showToolBar + false + true + + Specifies whether shows the toolbar. + Default to true. + + - - showNavigationBar - false - true - - Specifies whether shows the Navigation Bar. - If allowPageBreak is false,ignore this attribute. - Default to true. - - + + showNavigationBar + false + true + + Specifies whether shows the Navigation Bar. + If allowPageBreak is false,ignore this attribute. + Default to true. + + - - isReportlet - false - true - - Specifies whether render reportlet by bookmark. - Default to false. - - - + + isReportlet + false + true + + Specifies whether render reportlet by bookmark. + Default to false. + + + @@ -1094,15 +1094,15 @@ under the License. org.eclipse.birt.report.taglib.ParamDefTag JSP - The param tag is used to generate html code for defined parameter in ParameterPage tag. + The param tag is used to generate html code for defined parameter in ParameterPage tag. id true true - Specifies the id of parameter control.It should be unique. - It can contain number,letter or underline. + Specifies the id of parameter control.It should be unique. + It can contain number,letter or underline. @@ -1110,7 +1110,7 @@ under the License. true true - Specifies the report parameter name. + Specifies the report parameter name. @@ -1118,8 +1118,8 @@ under the License. false true - Specifies the report parameter pattern format. - It is used to parse defined parameter value string. + Specifies the report parameter pattern format. + It is used to parse defined parameter value string. @@ -1127,7 +1127,7 @@ under the License. false true - Specifies the report parameter value. If doesn't set, use default value. + Specifies the report parameter value. If doesn't set, use default value. @@ -1135,7 +1135,7 @@ under the License. false true - Specifies the report parameter display text. + Specifies the report parameter display text. @@ -1143,8 +1143,8 @@ under the License. false true - Specifies whether the report parameter value is a locale/format related string. - It is used to parse defined parameter value string. + Specifies whether the report parameter value is a locale/format related string. + It is used to parse defined parameter value string. @@ -1152,7 +1152,7 @@ under the License. false true - Specifies the title attribute of parameter control. + Specifies the title attribute of parameter control. @@ -1160,7 +1160,7 @@ under the License. false true - Specifies the css class attribute of parameter control. + Specifies the css class attribute of parameter control. @@ -1168,8 +1168,8 @@ under the License. false true - Specifies the parameter control style. + Specifies the parameter control style. - + \ No newline at end of file diff --git a/framework/images/webapp/images/calendarDateSelect/format/format_iso_date.js b/framework/images/webapp/images/calendarDateSelect/format/format_iso_date.js index ea7aa7357f..620a941d81 100644 --- a/framework/images/webapp/images/calendarDateSelect/format/format_iso_date.js +++ b/framework/images/webapp/images/calendarDateSelect/format/format_iso_date.js @@ -1,5 +1,5 @@ Date.prototype.toFormattedString = function(include_time) { - var hour; + var hour; var str = this.getFullYear() + "-" + Date.padded2(this.getMonth() + 1) + "-" +Date.padded2(this.getDate()); if (include_time) { hour = this.getHours(); diff --git a/framework/images/webapp/images/selectall.js b/framework/images/webapp/images/selectall.js index 035f7ec501..90e09d913d 100644 --- a/framework/images/webapp/images/selectall.js +++ b/framework/images/webapp/images/selectall.js @@ -313,7 +313,7 @@ function ajaxSubmitFormUpdateAreas(form, areaCsvString) { $('content-messages' ).update(data._ERROR_MESSAGE_LIST_ + " " + data._ERROR_MESSAGE_); new Effect.Appear('content-messages',{duration: 0.5}); }else { - if($('content-messages')) { + if($('content-messages')) { $('content-messages').removeClassName('errorMessage'); new Effect.Fade('content-messages',{duration: 0.0}); } @@ -333,15 +333,15 @@ function ajaxAutoCompleter(areaCsvString) { var areaArray = areaCsvString.split(","); var numAreas = parseInt(areaArray.length / 3); for (var i = 0; i < numAreas * 3; i = i + 3) { - var optionsDivId = areaArray[i] + "_autoCompleterOptions"; - var indicatorId = areaArray[i] + "_indicator"; - $(areaArray[i]).insert({after: '
'}); + var optionsDivId = areaArray[i] + "_autoCompleterOptions"; + var indicatorId = areaArray[i] + "_indicator"; + $(areaArray[i]).insert({after: '
'}); new Ajax.Autocompleter($(areaArray[i]), optionsDivId, areaArray[i + 1], {parameters: areaArray[i + 2], indicator: indicatorId, afterUpdateElement : getSelectionId}); } } function getSelectionId(text, li) { - text.value = li.id; + text.value = li.id; } /** Enable auto-completion for drop-down elements. diff --git a/framework/minilang/documents/MiniLang.xml b/framework/minilang/documents/MiniLang.xml index a061e57c64..ba4b30916e 100644 --- a/framework/minilang/documents/MiniLang.xml +++ b/framework/minilang/documents/MiniLang.xml @@ -18,11 +18,11 @@ under the License. -->
- The Entity Engine - - A description of the Mini Language guide can be found at the OFBiz documentation site - + version="5.0" xmlns:xl="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude" + xsi:schemaLocation="http://docbook.org/ns/docbook ../../../applications/content/dtd/docbook.xsd" + xmlns="http://docbook.org/ns/docbook"> + The Entity Engine + + A description of the Mini Language guide can be found at the OFBiz documentation site +
diff --git a/framework/service/documents/ServiceEngine.xml b/framework/service/documents/ServiceEngine.xml index 49930aa6b0..a02e33a8d7 100644 --- a/framework/service/documents/ServiceEngine.xml +++ b/framework/service/documents/ServiceEngine.xml @@ -18,10 +18,10 @@ under the License. -->
- The Service Engine + version="5.0" xmlns:xl="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude" + xsi:schemaLocation="http://docbook.org/ns/docbook ../../../applications/content/dtd/docbook.xsd" + xmlns="http://docbook.org/ns/docbook"> + The Service Engine A description of the service engine can be found at the OFBiz documentation site diff --git a/framework/service/dtd/service-group.xsd b/framework/service/dtd/service-group.xsd index 99953d0173..59145b1c39 100644 --- a/framework/service/dtd/service-group.xsd +++ b/framework/service/dtd/service-group.xsd @@ -82,9 +82,9 @@ under the License. diff --git a/framework/sql/src/org/ofbiz/sql/Parser.jj b/framework/sql/src/org/ofbiz/sql/Parser.jj index e6cb8c7eca..1b08a8d820 100644 --- a/framework/sql/src/org/ofbiz/sql/Parser.jj +++ b/framework/sql/src/org/ofbiz/sql/Parser.jj @@ -49,773 +49,773 @@ import javolution.util.FastMap; import javolution.util.FastSet; public final class Parser { - private boolean deleteSupportsUsing = true; - private boolean updateSupportsFrom = true; + private boolean deleteSupportsUsing = true; + private boolean updateSupportsFrom = true; - public Parser deleteSupportsUsing(boolean value) { - deleteSupportsUsing = value; - return this; - } + public Parser deleteSupportsUsing(boolean value) { + deleteSupportsUsing = value; + return this; + } - public Parser updateSupportsFrom(boolean value) { - updateSupportsFrom = value; - return this; - } + public Parser updateSupportsFrom(boolean value) { + updateSupportsFrom = value; + return this; + } - private Condition reduce(List conditions, Joiner joiner) { - if (conditions.size() == 1) { - return conditions.get(0); - } - return new ConditionList(joiner, conditions); - } + private Condition reduce(List conditions, Joiner joiner) { + if (conditions.size() == 1) { + return conditions.get(0); + } + return new ConditionList(joiner, conditions); + } } PARSER_END(Parser) TOKEN_MGR_DECLS: { - private final FastList stack = new FastList(); + private final FastList stack = new FastList(); - void pushState(int newState) { - stack.add(curLexState); - SwitchTo(newState); - } + void pushState(int newState) { + stack.add(curLexState); + SwitchTo(newState); + } - void popState() { - SwitchTo(stack.removeLast()); - } + void popState() { + SwitchTo(stack.removeLast()); + } } TOKEN: { - -| -| -| -| -| -| -| -| -| -| -| -//| -| -| -| -| -| -| -| -| -| -| -| -| -| -| -| -| -| -| -| -| -| -| -| -| -| -| -| -| -| -| -| -| -| { pushState(IN_DQUOTE); } -| { pushState(IN_SQUOTE); } -| -| -| -//| + +| +| +| +| +| +| +| +| +| +| +| +//| +| +| +| +| +| +| +| +| +| +| +| +| +| +| +| +| +| +| +| +| +| +| +| +| +| +| +| +| +| +| +| +| +| { pushState(IN_DQUOTE); } +| { pushState(IN_SQUOTE); } +| +| +| +//| } SKIP: { - + } <*> MORE: { - { if (curLexState != IN_COMMENT) pushState(IN_COMMENT); } + { if (curLexState != IN_COMMENT) pushState(IN_COMMENT); } } MORE: { - <(~[])> -| { popState(); } + <(~[])> +| { popState(); } } TOKEN: { - + } TOKEN: { - { popState(); } + { popState(); } } TOKEN: { - -| { popState(); } + +| { popState(); } } TOKEN: { - + } // ------------------- public List> SQLFile(): { - List> list = FastList.newInstance(); - SQLStatement statement; + List> list = FastList.newInstance(); + SQLStatement statement; } { - ( statement=Statement() ( )? { list.add(statement); } )* - - { return list; } + ( statement=Statement() ( )? { list.add(statement); } )* + + { return list; } } public SQLStatement StandaloneStatement(): { - SQLStatement statement; + SQLStatement statement; } { - statement=Statement() ( )? { return statement; } + statement=Statement() ( )? { return statement; } } public SQLView ViewStatement(): { - SQLView sqlView; + SQLView sqlView; } { - sqlView=View() ( )? { return sqlView; } + sqlView=View() ( )? { return sqlView; } } public SQLSelect SelectStatement(): { - SQLSelect sqlSelect; + SQLSelect sqlSelect; } { - sqlSelect=Select() ( )? { return sqlSelect; } + sqlSelect=Select() ( )? { return sqlSelect; } } public SQLDelete DeleteStatement(): { - SQLDelete sqlDelete; + SQLDelete sqlDelete; } { - sqlDelete=Delete() ( )? { return sqlDelete; } + sqlDelete=Delete() ( )? { return sqlDelete; } } public SQLUpdate UpdateStatement(): { - SQLUpdate sqlUpdate; + SQLUpdate sqlUpdate; } { - sqlUpdate=Update() ( )? { return sqlUpdate; } + sqlUpdate=Update() ( )? { return sqlUpdate; } } public SQLInsert InsertStatement(): { - SQLInsert sqlInsert; + SQLInsert sqlInsert; } { - sqlInsert=Insert() ( )? { return sqlInsert; } + sqlInsert=Insert() ( )? { return sqlInsert; } } public Condition Condition(): { Condition c; } { - c=ConditionExpression() { return c; } + c=ConditionExpression() { return c; } } private SQLStatement Statement(): { - SQLStatement statement; + SQLStatement statement; } { - ( - statement=Select() { return statement; } - | statement=Delete() { return statement; } - | statement=Update() { return statement; } - | statement=Insert() { return statement; } - | statement=View() { return statement; } - ) + ( + statement=Select() { return statement; } + | statement=Delete() { return statement; } + | statement=Update() { return statement; } + | statement=Insert() { return statement; } + | statement=View() { return statement; } + ) } private SQLView View(): { - String name; - SQLSelect sqlSelect; + String name; + SQLSelect sqlSelect; } { - name=NamePart() sqlSelect=Select() - { return new SQLView(name, sqlSelect); } + name=NamePart() sqlSelect=Select() + { return new SQLView(name, sqlSelect); } } private SQLSelect Select(): { - Integer i; - List orderBy = null; - List groupBy = null; - Map fieldDefs = FastMap.newInstance(); - List fieldAlls = FastList.newInstance(); - Set fieldAllAliases = FastSet.newInstance(); - Table table; - Map relations = FastMap.newInstance(); - Condition whereCondition = null, havingCondition = null; - int offset = -1, limit = -1; + Integer i; + List orderBy = null; + List groupBy = null; + Map fieldDefs = FastMap.newInstance(); + List fieldAlls = FastList.newInstance(); + Set fieldAllAliases = FastSet.newInstance(); + Table table; + Map relations = FastMap.newInstance(); + Condition whereCondition = null, havingCondition = null; + int offset = -1, limit = -1; } { - ( + FieldDef(fieldDefs, fieldAlls, fieldAllAliases) + ( FieldDef(fieldDefs, fieldAlls, fieldAllAliases) )* + ) + table=Table() + ( Relation(relations) )* + ( whereCondition=ConditionExpression() )? + ( havingCondition=ConditionExpression() )? + ( groupBy=FieldList() )? + ( orderBy=OrderByList() )? + ( offset=Integer() )? + ( limit=Integer() )? + { return new SQLSelect(fieldAlls, fieldDefs, table, relations, whereCondition, havingCondition, groupBy, orderBy, offset, limit); } } private void Relation(Map relations): { - String type = null, title = null, entityName; - List keyMaps; + String type = null, title = null, entityName; + List keyMaps; } { - ( type=NamePart() )? - ( title=NamePart() )? - <NAME> { entityName = getToken(0).image; } - keyMaps=KeyMaps("cur", "other") - { - Relation relation = new Relation(type, title, entityName, keyMaps); - if (relations.containsKey(relation.getName())) throw new ParseException("Duplicate relation: " + relation); - relations.put(relation.getName(), relation); - } + ( <TYPE> type=NamePart() )? + ( <TITLE> title=NamePart() )? + <NAME> { entityName = getToken(0).image; } + keyMaps=KeyMaps("cur", "other") + { + Relation relation = new Relation(type, title, entityName, keyMaps); + if (relations.containsKey(relation.getName())) throw new ParseException("Duplicate relation: " + relation); + relations.put(relation.getName(), relation); + } } private SQLUpdate Update(): { - TableName tableName; - List<Table> tableList = null; - Condition whereCondition = null; - List<SetField> allSetFields = FastList.newInstance(); - List<SetField> setFields; - Joined joined = null; + TableName tableName; + List<Table> tableList = null; + Condition whereCondition = null; + List<SetField> allSetFields = FastList.newInstance(); + List<SetField> setFields; + Joined joined = null; } { - <UPDATE> tableName=TableName() - <SET> - setFields=SetField() { allSetFields.addAll(setFields); } - ( <COMMA> setFields=SetField() { allSetFields.addAll(setFields); } )* - ( LOOKAHEAD(<FROM>, {updateSupportsFrom}) <FROM> joined=JoinedRest(false, tableName) )? - ( <WHERE> whereCondition=ConditionExpression() )? - { return new SQLUpdate(new Table(tableName, joined), allSetFields, whereCondition); } + <UPDATE> tableName=TableName() + <SET> + setFields=SetField() { allSetFields.addAll(setFields); } + ( <COMMA> setFields=SetField() { allSetFields.addAll(setFields); } )* + ( LOOKAHEAD(<FROM>, {updateSupportsFrom}) <FROM> joined=JoinedRest(false, tableName) )? + ( <WHERE> whereCondition=ConditionExpression() )? + { return new SQLUpdate(new Table(tableName, joined), allSetFields, whereCondition); } } private SQLDelete Delete(): { - TableName tableName; - List<Table> tableList = null; - Condition whereCondition = null; - Joined joined = null; + TableName tableName; + List<Table> tableList = null; + Condition whereCondition = null; + Joined joined = null; } { - <DELETE> <FROM> tableName=TableName() - ( LOOKAHEAD(<USING>, {deleteSupportsUsing}) <USING> joined=JoinedRest(false, tableName) )? - ( <WHERE> whereCondition=ConditionExpression() )? - { return new SQLDelete(new Table(tableName, joined), whereCondition); } + <DELETE> <FROM> tableName=TableName() + ( LOOKAHEAD(<USING>, {deleteSupportsUsing}) <USING> joined=JoinedRest(false, tableName) )? + ( <WHERE> whereCondition=ConditionExpression() )? + { return new SQLDelete(new Table(tableName, joined), whereCondition); } } private SQLInsert Insert(): { - TableName tableName; - List<String> columns = FastList.newInstance(); - String n; - InsertSource source; + TableName tableName; + List<String> columns = FastList.newInstance(); + String n; + InsertSource source; } { - <INSERT> <INTO> tableName=TableName() ( - <OPEN_PAREN> - n=NamePart() { columns.add(n); } - ( <COMMA> n=NamePart() { columns.add(n); } )* - <CLOSE_PAREN> - )? - ( source=InsertValues() | source=Select() ) - { return new SQLInsert(tableName, source, columns); } + <INSERT> <INTO> tableName=TableName() ( + <OPEN_PAREN> + n=NamePart() { columns.add(n); } + ( <COMMA> n=NamePart() { columns.add(n); } )* + <CLOSE_PAREN> + )? + ( source=InsertValues() | source=Select() ) + { return new SQLInsert(tableName, source, columns); } } private InsertValues InsertValues(): { - List<InsertRow> list = FastList.newInstance(); - InsertRow row; + List<InsertRow> list = FastList.newInstance(); + InsertRow row; } { - <VALUES> - row=InsertRow() { list.add(row); } - ( <COMMA> row=InsertRow() { list.add(row); } )* - { return new InsertValues(list); } + <VALUES> + row=InsertRow() { list.add(row); } + ( <COMMA> row=InsertRow() { list.add(row); } )* + { return new InsertValues(list); } } private InsertRow InsertRow(): { - List<Value> list = FastList.newInstance(); - Value v; + List<Value> list = FastList.newInstance(); + Value v; } { - <OPEN_PAREN> - v=InsertValue() { list.add(v); } - ( <COMMA> v=InsertValue() { list.add(v); } )* - <CLOSE_PAREN> - { return new InsertRow(list); } + <OPEN_PAREN> + v=InsertValue() { list.add(v); } + ( <COMMA> v=InsertValue() { list.add(v); } )* + <CLOSE_PAREN> + { return new InsertRow(list); } } private Value InsertValue(): { - Value v; - Integer i; - String s; + Value v; + Integer i; + String s; } { - v=ParameterValue() { return v; } -| i=Integer() { return new NumberValue<Integer>(i); } -| s=SQuoted() { return new StringValue(s); } + v=ParameterValue() { return v; } +| i=Integer() { return new NumberValue<Integer>(i); } +| s=SQuoted() { return new StringValue(s); } } private List<SetField> SetField(): { - List<SetField> setFields = FastList.newInstance(); - String n; - Value v; - List<String> columnList = FastList.newInstance(); - List<Value> valueList = FastList.newInstance(); + List<SetField> setFields = FastList.newInstance(); + String n; + Value v; + List<String> columnList = FastList.newInstance(); + List<Value> valueList = FastList.newInstance(); } { - ( - n=NamePart() <EQUALS> ( - v=Value() { setFields.add(new SetField(n, v)); } - | v=MathValue() { setFields.add(new SetField(n, v)); } - ) - | <OPEN_PAREN> - n=NamePart() { columnList.add(n); } - ( <COMMA> n=NamePart() { columnList.add(n); } )* - <CLOSE_PAREN> - <EQUALS> - <OPEN_PAREN> - (v=Value()|v=MathValue()) { valueList.add(v); } - ( <COMMA> (v=Value()|v=MathValue()) { valueList.add(v); } )* - <CLOSE_PAREN> { - if (columnList.size() != valueList.size()) throw new ParseException(); - for (int i = 0; i < columnList.size(); i++) { - setFields.add(new SetField(columnList.get(i), valueList.get(i))); - } - } - ) - { return setFields; } + ( + n=NamePart() <EQUALS> ( + v=Value() { setFields.add(new SetField(n, v)); } + | v=MathValue() { setFields.add(new SetField(n, v)); } + ) + | <OPEN_PAREN> + n=NamePart() { columnList.add(n); } + ( <COMMA> n=NamePart() { columnList.add(n); } )* + <CLOSE_PAREN> + <EQUALS> + <OPEN_PAREN> + (v=Value()|v=MathValue()) { valueList.add(v); } + ( <COMMA> (v=Value()|v=MathValue()) { valueList.add(v); } )* + <CLOSE_PAREN> { + if (columnList.size() != valueList.size()) throw new ParseException(); + for (int i = 0; i < columnList.size(); i++) { + setFields.add(new SetField(columnList.get(i), valueList.get(i))); + } + } + ) + { return setFields; } } private Table Table(): { - TableName tableName; - Joined joined = null; + TableName tableName; + Joined joined = null; } { - tableName=TableName() - ( joined=Joined(tableName) )? - { return new Table(tableName, joined); } + tableName=TableName() + ( joined=Joined(tableName) )? + { return new Table(tableName, joined); } } private Joined Joined(TableName leftTableName): { - Boolean isOptional; - Joined joined = null; + Boolean isOptional; + Joined joined = null; } { - isOptional=Joiner() joined=JoinedRest(isOptional, leftTableName) - { return joined; } + isOptional=Joiner() joined=JoinedRest(isOptional, leftTableName) + { return joined; } } private Joined JoinedRest(boolean isOptional, TableName leftTableName): { - TableName rightTableName; - List<KeyMap> keyMaps; - Joined joined = null; + TableName rightTableName; + List<KeyMap> keyMaps; + Joined joined = null; } { - rightTableName=TableName() - keyMaps=KeyMaps(leftTableName.getAlias(), rightTableName.getAlias()) - ( joined=Joined(rightTableName) )? - { return new Joined(isOptional, rightTableName, keyMaps, joined); } + rightTableName=TableName() + keyMaps=KeyMaps(leftTableName.getAlias(), rightTableName.getAlias()) + ( joined=Joined(rightTableName) )? + { return new Joined(isOptional, rightTableName, keyMaps, joined); } } private List<KeyMap> KeyMaps(String leftAlias, String rightAlias): { - List<KeyMap> keyMaps = FastList.newInstance(); - String n; + List<KeyMap> keyMaps = FastList.newInstance(); + String n; } { - ( - <ON> - KeyMap(keyMaps, leftAlias, rightAlias) - ( <AND> KeyMap(keyMaps, leftAlias, rightAlias) )* - | - <USING> - n=NamePart() { keyMaps.add(new KeyMap(n, n)); } - ( <COMMA> n=NamePart() { keyMaps.add(new KeyMap(n, n)); } )* - ) - { return keyMaps; } + ( + <ON> + KeyMap(keyMaps, leftAlias, rightAlias) + ( <AND> KeyMap(keyMaps, leftAlias, rightAlias) )* + | + <USING> + n=NamePart() { keyMaps.add(new KeyMap(n, n)); } + ( <COMMA> n=NamePart() { keyMaps.add(new KeyMap(n, n)); } )* + ) + { return keyMaps; } } private void KeyMap(List<KeyMap> keyMaps, String leftAlias, String rightAlias): { - String alias1, field1; - String alias2, field2; + String alias1, field1; + String alias2, field2; } { - alias1=NamePart() <PERIOD> field1=NamePart() - <EQUALS> - alias2=NamePart() <PERIOD> field2=NamePart() - { - if (alias1.equals(leftAlias)) { - if (!alias2.equals(rightAlias)) throw new ParseException("invalid right alias(" + alias2 + "), expected(" + rightAlias + ")"); - keyMaps.add(new KeyMap(field1, field2)); - } else if (alias1.equals(rightAlias)) { - if (!alias2.equals(leftAlias)) throw new ParseException("invalid left alias(" + alias2 + "), expected(" + leftAlias + ")"); - keyMaps.add(new KeyMap(field2, field1)); - } else { - throw new ParseException("invalid aliases, expected(" + leftAlias + " or " + rightAlias + ")"); - } - } + alias1=NamePart() <PERIOD> field1=NamePart() + <EQUALS> + alias2=NamePart() <PERIOD> field2=NamePart() + { + if (alias1.equals(leftAlias)) { + if (!alias2.equals(rightAlias)) throw new ParseException("invalid right alias(" + alias2 + "), expected(" + rightAlias + ")"); + keyMaps.add(new KeyMap(field1, field2)); + } else if (alias1.equals(rightAlias)) { + if (!alias2.equals(leftAlias)) throw new ParseException("invalid left alias(" + alias2 + "), expected(" + leftAlias + ")"); + keyMaps.add(new KeyMap(field2, field1)); + } else { + throw new ParseException("invalid aliases, expected(" + leftAlias + " or " + rightAlias + ")"); + } + } } private TableName TableName(): { - String tableName, alias = null; + String tableName, alias = null; } { - tableName=NamePart() - ( (<AS>)? alias=NamePart() )? - { return new TableName(tableName, alias); } + tableName=NamePart() + ( (<AS>)? alias=NamePart() )? + { return new TableName(tableName, alias); } } private Boolean Joiner(): {} { - <LEFT> <JOIN> { return Boolean.TRUE; } -| <JOIN> { return Boolean.FALSE; } + <LEFT> <JOIN> { return Boolean.TRUE; } +| <JOIN> { return Boolean.FALSE; } } private void FieldDef(Map<String, FieldDef> fieldDefs, List<FieldAll> fieldAlls, Set<String> fieldAllAliases): { - StaticValue v; - String n, fieldAlias = null, fieldName, exc; - FieldDef def; - Set<String> excludeList = FastSet.newInstance(); + StaticValue v; + String n, fieldAlias = null, fieldName, exc; + FieldDef def; + Set<String> excludeList = FastSet.newInstance(); } { - ( - n=NamePart() ( - <PERIOD> ( - <STAR> - ( - { if (fieldAllAliases.contains(n)) throw new ParseException("Duplicate aliasAll(" + n + ")"); } - <EXCLUDE> <OPEN_PAREN> - exc=NamePart() { excludeList.add(exc); } - ( <COMMA> exc=NamePart() { excludeList.add(exc); } )* - <CLOSE_PAREN> - )? - { fieldAlls.add(new FieldAll(n, excludeList)); return; } - | fieldName=NamePart() ( <AS> fieldAlias=NamePart() )? { def = new FieldDefFieldValue(new FieldValue(n, fieldName), fieldAlias); } - ) - | v=FunctionCallRest(n) ( <AS> fieldAlias=NamePart() )? { def = new FieldDefValue(v, fieldAlias); } - | ( <AS> fieldAlias=NamePart() )? { def = new FieldDefFieldValue(new FieldValue(null, n), fieldAlias); } - ) - | v=MathValue() ( <AS> fieldAlias=NamePart() )? { def = new FieldDefValue(v, fieldAlias); } - ) { - if (fieldDefs.containsKey(def.getAlias())) throw new ParseException("duplicate alias(" + def.getAlias() + ")"); - fieldDefs.put(def.getAlias(), def); - } + ( + n=NamePart() ( + <PERIOD> ( + <STAR> + ( + { if (fieldAllAliases.contains(n)) throw new ParseException("Duplicate aliasAll(" + n + ")"); } + <EXCLUDE> <OPEN_PAREN> + exc=NamePart() { excludeList.add(exc); } + ( <COMMA> exc=NamePart() { excludeList.add(exc); } )* + <CLOSE_PAREN> + )? + { fieldAlls.add(new FieldAll(n, excludeList)); return; } + | fieldName=NamePart() ( <AS> fieldAlias=NamePart() )? { def = new FieldDefFieldValue(new FieldValue(n, fieldName), fieldAlias); } + ) + | v=FunctionCallRest(n) ( <AS> fieldAlias=NamePart() )? { def = new FieldDefValue(v, fieldAlias); } + | ( <AS> fieldAlias=NamePart() )? { def = new FieldDefFieldValue(new FieldValue(null, n), fieldAlias); } + ) + | v=MathValue() ( <AS> fieldAlias=NamePart() )? { def = new FieldDefValue(v, fieldAlias); } + ) { + if (fieldDefs.containsKey(def.getAlias())) throw new ParseException("duplicate alias(" + def.getAlias() + ")"); + fieldDefs.put(def.getAlias(), def); + } } private StaticValue MathValue(): { - ConstantValue v; - List<ConstantValue> values = FastList.newInstance(); - String operator = null, newOperator; + ConstantValue v; + List<ConstantValue> values = FastList.newInstance(); + String operator = null, newOperator; } { - <OPEN_PAREN> - v=ConstantValue() { values.add(v); } - ( - newOperator=MathOperator() - v=ConstantValue() { - if (operator == null) { - operator = newOperator; - } else if (!newOperator.equals(operator)) { - throw new ParseException("Different operators in complex alias(" + operator + ":" + newOperator + ")"); - } - values.add(v); - } - )* - <CLOSE_PAREN> - { - if (values.size() == 1 && values.get(0) instanceof StaticValue) return (StaticValue) values.get(0); - return new MathValue(operator, values); - } + <OPEN_PAREN> + v=ConstantValue() { values.add(v); } + ( + newOperator=MathOperator() + v=ConstantValue() { + if (operator == null) { + operator = newOperator; + } else if (!newOperator.equals(operator)) { + throw new ParseException("Different operators in complex alias(" + operator + ":" + newOperator + ")"); + } + values.add(v); + } + )* + <CLOSE_PAREN> + { + if (values.size() == 1 && values.get(0) instanceof StaticValue) return (StaticValue) values.get(0); + return new MathValue(operator, values); + } } private FunctionCall FunctionCallRest(String name): { - Value arg; - List<Value> args = FastList.newInstance(); + Value arg; + List<Value> args = FastList.newInstance(); } { - <OPEN_PAREN> - ( - arg=Value() { args.add(arg); } - ( <COMMA> arg=Value() { args.add(arg); } )* - ) ? - <CLOSE_PAREN> - { return new FunctionCall(name, args); } + <OPEN_PAREN> + ( + arg=Value() { args.add(arg); } + ( <COMMA> arg=Value() { args.add(arg); } )* + ) ? + <CLOSE_PAREN> + { return new FunctionCall(name, args); } } private ConstantValue ConstantValue(): { - String n; - ConstantValue v; - int i; - String s; + String n; + ConstantValue v; + int i; + String s; } { - n=NamePart() ( - v=FunctionCallRest(n) { return v; } - | v=FieldValue(n) { return v; } - ) -| i=Integer() { return new NumberValue<Integer>(i); } -| s=SQuoted() { return new StringValue(s); } -| v=MathValue() { return v; } + n=NamePart() ( + v=FunctionCallRest(n) { return v; } + | v=FieldValue(n) { return v; } + ) +| i=Integer() { return new NumberValue<Integer>(i); } +| s=SQuoted() { return new StringValue(s); } +| v=MathValue() { return v; } } private String NamePart(): {} { - <NAME> { return getToken(0).image; } -| <TYPE> { return getToken(0).image; } + <NAME> { return getToken(0).image; } +| <TYPE> { return getToken(0).image; } } private String DQuoted(): { StringBuilder sb = new StringBuilder(); } { - <START_DQUOTE> (<TEXT> { sb.append(getToken(0).image); } | <ESCAPED> { sb.append(getToken(0).image); })* <END_DQUOTE> - { return sb.toString(); } + <START_DQUOTE> (<TEXT> { sb.append(getToken(0).image); } | <ESCAPED> { sb.append(getToken(0).image); })* <END_DQUOTE> + { return sb.toString(); } } private String SQuoted(): { StringBuilder sb = new StringBuilder(); } { - <START_SQUOTE> ( - <TEXT> { sb.append(getToken(0).image); } - | <ESCAPED> { sb.append(getToken(0).image); } - | <ESCAPE_SQUOTE> { sb.append("'"); } - )* <END_SQUOTE> - { return sb.toString(); } + <START_SQUOTE> ( + <TEXT> { sb.append(getToken(0).image); } + | <ESCAPED> { sb.append(getToken(0).image); } + | <ESCAPE_SQUOTE> { sb.append("'"); } + )* <END_SQUOTE> + { return sb.toString(); } } private List<String> FieldList(): { - List<String> list = FastList.newInstance(); - String n; + List<String> list = FastList.newInstance(); + String n; } { - n=NamePart() { list.add(n); } - ( <COMMA> n=NamePart() { list.add(n); } )* - { return list; } + n=NamePart() { list.add(n); } + ( <COMMA> n=NamePart() { list.add(n); } )* + { return list; } } private FieldValue FieldValue(String fieldName): { - String s; + String s; } { - ( <PERIOD> s=NamePart() { return new FieldValue(fieldName, s); } )? - { - return new FieldValue(fieldName); - } + ( <PERIOD> s=NamePart() { return new FieldValue(fieldName, s); } )? + { + return new FieldValue(fieldName); + } } private List<OrderByItem> OrderByList(): { - List<OrderByItem> orderBy = FastList.newInstance(); - OrderByItem obi; + List<OrderByItem> orderBy = FastList.newInstance(); + OrderByItem obi; } { - obi=OrderByItem() { orderBy.add(obi); } - ( <COMMA> obi=OrderByItem() { orderBy.add(obi); } )* - { return orderBy; } + obi=OrderByItem() { orderBy.add(obi); } + ( <COMMA> obi=OrderByItem() { orderBy.add(obi); } )* + { return orderBy; } } private OrderByItem OrderByItem(): { - String functionName = null, fieldName = null; - boolean descending = false, orderingSet = false; - OrderByItem.Order ordering = OrderByItem.Order.DEFAULT; + String functionName = null, fieldName = null; + boolean descending = false, orderingSet = false; + OrderByItem.Order ordering = OrderByItem.Order.DEFAULT; } { - ( - <PLUS> { ordering = OrderByItem.Order.ASCENDING; } - | <MINUS> { ordering = OrderByItem.Order.DESCENDING; } - )? - ( - ( <UPPER> | <LOWER> ) { functionName = getToken(0).image; } - <OPEN_PAREN> fieldName=NamePart() <CLOSE_PAREN> - | fieldName=NamePart() - ) - LOOKAHEAD({!orderingSet}) ( - <DESC> { ordering = OrderByItem.Order.DESCENDING; } - | <ASC> { ordering = OrderByItem.Order.ASCENDING; } - )? - { return new OrderByItem(ordering, functionName, fieldName); } + ( + <PLUS> { ordering = OrderByItem.Order.ASCENDING; } + | <MINUS> { ordering = OrderByItem.Order.DESCENDING; } + )? + ( + ( <UPPER> | <LOWER> ) { functionName = getToken(0).image; } + <OPEN_PAREN> fieldName=NamePart() <CLOSE_PAREN> + | fieldName=NamePart() + ) + LOOKAHEAD({!orderingSet}) ( + <DESC> { ordering = OrderByItem.Order.DESCENDING; } + | <ASC> { ordering = OrderByItem.Order.ASCENDING; } + )? + { return new OrderByItem(ordering, functionName, fieldName); } } private Integer Integer(): {} { - <INTEGER> { return Integer.decode(getToken(0).image); } + <INTEGER> { return Integer.decode(getToken(0).image); } } private Value Value(): { - String n; - Value v; - int i; - String s; + String n; + Value v; + int i; + String s; } { - n=NamePart() ( - v=FunctionCallRest(n) { return v; } - | v=FieldValue(n) { return v; } - ) -| i=Integer() { return new NumberValue<Integer>(i); } -| s=SQuoted() { return new StringValue(s); } + n=NamePart() ( + v=FunctionCallRest(n) { return v; } + | v=FieldValue(n) { return v; } + ) +| i=Integer() { return new NumberValue<Integer>(i); } +| s=SQuoted() { return new StringValue(s); } } private Condition ConditionExpression(): { Condition c; } { - c=OrExpression() { return c; } + c=OrExpression() { return c; } } private Condition AndExpression(): { - List<Condition> list = FastList.newInstance(); - Condition c; + List<Condition> list = FastList.newInstance(); + Condition c; } { - c=BooleanExpression() { list.add(c); } + c=BooleanExpression() { list.add(c); } ( <AND> c=BooleanExpression() { list.add(c); } )* - { return reduce(list, Joiner.AND); } + { return reduce(list, Joiner.AND); } } private Condition OrExpression(): { - List<Condition> list = FastList.newInstance(); - Condition c; + List<Condition> list = FastList.newInstance(); + Condition c; } { - c=AndExpression() { list.add(c); } + c=AndExpression() { list.add(c); } ( <OR> c=AndExpression() { list.add(c); } )* - { return reduce(list, Joiner.OR); } + { return reduce(list, Joiner.OR); } } private Value RightValue(): { - Value v; + Value v; } { - v=Value() { return v; } -| v=ParameterValue() { return v; } + v=Value() { return v; } +| v=ParameterValue() { return v; } } private ParameterValue ParameterValue(): {} { - <PARAMETER> { return new ParameterValue(getToken(0).image.substring(1)); } + <PARAMETER> { return new ParameterValue(getToken(0).image.substring(1)); } } private Condition BooleanExpression(): { - Value v1, v2, v, r1, r2; - String op; - Condition c; - List<Value> list = FastList.newInstance(); + Value v1, v2, v, r1, r2; + String op; + Condition c; + List<Value> list = FastList.newInstance(); } { - v1=Value() ( - <BETWEEN> - r1=RightValue() - <AND> - r2=RightValue() - { return new BetweenCondition(v1, r1, r2); } - | <IS> ( - <NULL> { op = "="; v2 = Value.NULL; } - | <NOT> <NULL> { op = "!="; v2 = Value.NULL; } - ) - | op=ComparisonOperator() ( - v2=RightValue() - | <OPEN_PAREN> - v=RightValue() { list.add(v); } - ( <COMMA> v=RightValue() { list.add(v); } )* - <CLOSE_PAREN> - { return new ListCondition(v1, op, list); } - ) - ) - { return new BooleanCondition(v1, op, v2); } -| <OPEN_PAREN> c=ConditionExpression() <CLOSE_PAREN> { return c; } + v1=Value() ( + <BETWEEN> + r1=RightValue() + <AND> + r2=RightValue() + { return new BetweenCondition(v1, r1, r2); } + | <IS> ( + <NULL> { op = "="; v2 = Value.NULL; } + | <NOT> <NULL> { op = "!="; v2 = Value.NULL; } + ) + | op=ComparisonOperator() ( + v2=RightValue() + | <OPEN_PAREN> + v=RightValue() { list.add(v); } + ( <COMMA> v=RightValue() { list.add(v); } )* + <CLOSE_PAREN> + { return new ListCondition(v1, op, list); } + ) + ) + { return new BooleanCondition(v1, op, v2); } +| <OPEN_PAREN> c=ConditionExpression() <CLOSE_PAREN> { return c; } } private String ComparisonOperator(): { - StringBuilder sb; + StringBuilder sb; } { - (<TEXT>)+ { sb = new StringBuilder(); sb.append(getToken(0).image); } - ( - <EQUALS> { sb.append(getToken(0).image); } - ((<TEXT>)+ { sb.append(getToken(0).image); })? - )* { return sb.toString(); } -| <NAME> { return getToken(0).image; } -| <EQUALS> { return getToken(0).image.toLowerCase(); } + (<TEXT>)+ { sb = new StringBuilder(); sb.append(getToken(0).image); } + ( + <EQUALS> { sb.append(getToken(0).image); } + ((<TEXT>)+ { sb.append(getToken(0).image); })? + )* { return sb.toString(); } +| <NAME> { return getToken(0).image; } +| <EQUALS> { return getToken(0).image.toLowerCase(); } } private String MathOperator(): {} { - ( <TEXT> )+ { return getToken(0).image.toLowerCase(); } -| <NAME> { return getToken(0).image.toLowerCase(); } + ( <TEXT> )+ { return getToken(0).image.toLowerCase(); } +| <NAME> { return getToken(0).image.toLowerCase(); } } diff --git a/framework/sql/src/org/ofbiz/sql/test/GoodParseAll.sql b/framework/sql/src/org/ofbiz/sql/test/GoodParseAll.sql index cde819fd8d..7ba02582c4 100644 --- a/framework/sql/src/org/ofbiz/sql/test/GoodParseAll.sql +++ b/framework/sql/src/org/ofbiz/sql/test/GoodParseAll.sql @@ -18,46 +18,46 @@ */ SELECT - a.*, - b.* EXCLUDE (partyId, partyId), - c.* EXCLUDE (partyId), - d.roleTypeId, - d.description AS roleDescription, - SUM(a.partyId), - FOO(a.partyId, 1) AS baz, - (a.partyId || '-' || a.partyTypeId) AS one + a.*, + b.* EXCLUDE (partyId, partyId), + c.* EXCLUDE (partyId), + d.roleTypeId, + d.description AS roleDescription, + SUM(a.partyId), + FOO(a.partyId, 1) AS baz, + (a.partyId || '-' || a.partyTypeId) AS one FROM - Party a LEFT JOIN Person b USING partyId - LEFT JOIN PartyGroup c ON b.partyId = c.partyId - JOIN PartyRole d ON c.partyId = d.partyId AND c.partyId = d.partyId + Party a LEFT JOIN Person b USING partyId + LEFT JOIN PartyGroup c ON b.partyId = c.partyId + JOIN PartyRole d ON c.partyId = d.partyId AND c.partyId = d.partyId RELATION TYPE one TITLE MainA Person USING partyId RELATION TITLE MainB Person USING partyId RELATION TYPE one Person USING partyId RELATION PartyGroup USING partyId WHERE - a.partyTypeId = 'PERSON' - AND - b.lastName LIKE ?lastName - AND - b.birthDate BETWEEN '1974-12-01' AND '1974-12-31' - OR - ( - b.partyId IN ('1', '2', '3', '4') - AND - b.gender = 'M' - ) - + a.partyTypeId = 'PERSON' + AND + b.lastName LIKE ?lastName + AND + b.birthDate BETWEEN '1974-12-01' AND '1974-12-31' + OR + ( + b.partyId IN ('1', '2', '3', '4') + AND + b.gender = 'M' + ) + HAVING - b.firstName LIKE '%foo%' + b.firstName LIKE '%foo%' ORDER BY - LOWER(lastName), firstName, birthDate DESC + LOWER(lastName), firstName, birthDate DESC OFFSET 5 LIMIT 10 ; INSERT INTO Party (partyId, partyTypeId, statusId) VALUES - ('a', 'PERSON', 'PARTY_DISABLED'), - (5, 'PARTY_GROUP', ?name); + ('a', 'PERSON', 'PARTY_DISABLED'), + (5, 'PARTY_GROUP', ?name); INSERT INTO Person (partyId, firstName) SELECT partyId, (partyId || '-auto') AS firstName FROM Party WHERE partyId IN ('a', 'b'); UPDATE Person SET (lastName) = (('auto-' || partyId)) WHERE partyId IN ('a', 'b'); UPDATE Person SET (lastName, height, width) = (('auto-' || partyId), 5, 7) WHERE partyId IN ('a', 'b'); diff --git a/framework/sql/src/org/ofbiz/sql/test/TestSelect.sql b/framework/sql/src/org/ofbiz/sql/test/TestSelect.sql index 0ecb5e5d9a..f326d657f9 100644 --- a/framework/sql/src/org/ofbiz/sql/test/TestSelect.sql +++ b/framework/sql/src/org/ofbiz/sql/test/TestSelect.sql @@ -18,27 +18,27 @@ */ SELECT - a.*, - b.firstName, - b.lastName + a.*, + b.firstName, + b.lastName FROM - Party a JOIN Person b ON a.partyId = b.partyId + Party a JOIN Person b ON a.partyId = b.partyId WHERE - a.partyTypeId = 'PERSON' - AND - b.lastName LIKE ?lastName + a.partyTypeId = 'PERSON' + AND + b.lastName LIKE ?lastName HAVING - b.firstName LIKE '%foo%' + b.firstName LIKE '%foo%' OFFSET 5 LIMIT 10 ; SELECT - a.partyTypeId, - COUNT(a.partyId) AS count + a.partyTypeId, + COUNT(a.partyId) AS count FROM - Party a LEFT JOIN Person b USING partyId - LEFT JOIN PartyGroup c USING partyId + Party a LEFT JOIN Person b USING partyId + LEFT JOIN PartyGroup c USING partyId GROUP BY - partyTypeId + partyTypeId ; diff --git a/framework/testtools/documents/TestTools.xml b/framework/testtools/documents/TestTools.xml index f35144a95c..47da77b7b1 100644 --- a/framework/testtools/documents/TestTools.xml +++ b/framework/testtools/documents/TestTools.xml @@ -18,13 +18,13 @@ under the License. --> <chapter xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" - version="5.0" xmlns:xl="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude" - xsi:schemaLocation="http://docbook.org/ns/docbook ../../applications/content/dtd/docbook.xsd" - xmlns="http://docbook.org/ns/docbook"> - <title>The OFBiz Test Tools Introduction. + version="5.0" xmlns:xl="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude" + xsi:schemaLocation="http://docbook.org/ns/docbook ../../applications/content/dtd/docbook.xsd" + xmlns="http://docbook.org/ns/docbook"> + The OFBiz Test Tools Introduction. Ofbiz contains a test framework consisting out of the JUnit framework and the Selenium firefox plugin. with the XML extension. - For a excellent JUnit introduction check the Clarkware site. + For a excellent JUnit introduction check the Clarkware site. diff --git a/framework/testtools/dtd/SeleniumXml.xsd b/framework/testtools/dtd/SeleniumXml.xsd index 0e0b868e08..e8c2715b48 100644 --- a/framework/testtools/dtd/SeleniumXml.xsd +++ b/framework/testtools/dtd/SeleniumXml.xsd @@ -1,84 +1,84 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + elementFormDefault="qualified"> + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - + + + + - - - - - - - - - - - - + + + + + + + + + + + + - - + + @@ -88,7 +88,7 @@ - + @@ -118,7 +118,7 @@ - + @@ -306,10 +306,10 @@ - - - - + + + + @@ -318,7 +318,7 @@ - + diff --git a/framework/testtools/dtd/test-suite.xsd b/framework/testtools/dtd/test-suite.xsd index 41bafc1408..b59ce5fb98 100644 --- a/framework/testtools/dtd/test-suite.xsd +++ b/framework/testtools/dtd/test-suite.xsd @@ -39,7 +39,7 @@ under the License. - + diff --git a/framework/testtools/testdef/seleniumxml/example/recorded/AjaxExample.html b/framework/testtools/testdef/seleniumxml/example/recorded/AjaxExample.html index c95fec06ff..dc1ffbcf56 100644 --- a/framework/testtools/testdef/seleniumxml/example/recorded/AjaxExample.html +++ b/framework/testtools/testdef/seleniumxml/example/recorded/AjaxExample.html @@ -30,124 +30,124 @@ AjaxExample - open - /example/control/updateExampleFeature - + open + /example/control/updateExampleFeature + - clickAndWait - link=Logout - + clickAndWait + link=Logout + - type - PASSWORD - ofbiz + type + PASSWORD + ofbiz - clickAndWait - //input[@value='Login'] - + clickAndWait + //input[@value='Login'] + - clickAndWait - link=Ajax Examples - + clickAndWait + link=Ajax Examples + - type - exampleName - AJAX example name + type + exampleName + AJAX example name - type - description - AJAX description + type + description + AJAX description - type - longDescription - This is a long description + type + longDescription + This is a long description - type - comments - this is a comment + type + comments + this is a comment - type - exampleSize - 10 + type + exampleSize + 10 - click - //img[@alt='View Calendar'] - + click + //img[@alt='View Calendar'] + - click - //tr[5]/td[2]/div - + click + //tr[5]/td[2]/div + - click - link=OK - + click + link=OK + - click - //div[@id='_G266__body']/table/tbody/tr[9]/td[2]/a/img - + click + //div[@id='_G266__body']/table/tbody/tr[9]/td[2]/a/img + - click - link=Now - + click + link=Now + - click - link=OK - + click + link=OK + - select - anotherText - label=Explicit Option + select + anotherText + label=Explicit Option - click - submitButton - + click + submitButton + - clickAndWait - link=10000 - + clickAndWait + link=10000 + - type - longDescription - This is a long description - this is a big update + type + longDescription + This is a long description - this is a big update - clickAndWait - submitButton - + clickAndWait + submitButton + - clickAndWait - link=Ajax Examples - + clickAndWait + link=Ajax Examples + - clickAndWait - link=10000 - + clickAndWait + link=10000 + - clickAndWait - link=Printer Friendly - + clickAndWait + link=Printer Friendly + diff --git a/framework/testtools/testdef/seleniumxml/example/recorded/NewExample.html b/framework/testtools/testdef/seleniumxml/example/recorded/NewExample.html index 616f9f97d2..7f2922ee1f 100644 --- a/framework/testtools/testdef/seleniumxml/example/recorded/NewExample.html +++ b/framework/testtools/testdef/seleniumxml/example/recorded/NewExample.html @@ -30,134 +30,134 @@ NewExample - open - /example/control/FindExample?portalPageId=Example - + open + /example/control/FindExample?portalPageId=Example + - clickAndWait - link=Logout - + clickAndWait + link=Logout + - type - PASSWORD - ofbiz + type + PASSWORD + ofbiz - clickAndWait - //input[@value='Login'] - + clickAndWait + //input[@value='Login'] + - clickAndWait - link=New Example - + clickAndWait + link=New Example + - select - statusId - label=Defined + select + statusId + label=Defined - type - exampleName - New Example 1 + type + exampleName + New Example 1 - type - description - This is a description + type + description + This is a description - type - longDescription - Long description goes here + type + longDescription + Long description goes here - type - comments - comments go here + type + comments + comments go here - type - exampleSize - 10 + type + exampleSize + 10 - click - //img[@alt='View Calendar'] - + click + //img[@alt='View Calendar'] + - click - //tr[2]/td[5]/div - + click + //tr[2]/td[5]/div + - click - //tr[2]/td[5]/div - + click + //tr[2]/td[5]/div + - click - //div[@id='_G152__body']/table/tbody/tr[9]/td[2]/a/img - + click + //div[@id='_G152__body']/table/tbody/tr[9]/td[2]/a/img + - click - //tr[3]/td[2]/div - + click + //tr[3]/td[2]/div + - click - //tr[3]/td[2]/div - + click + //tr[3]/td[2]/div + - click - link=OK - + click + link=OK + - select - anotherText - label=Good + select + anotherText + label=Good - clickAndWait - submitButton - + clickAndWait + submitButton + - clickAndWait - link=Items - + clickAndWait + link=Items + - type - description - Item 1 + type + description + Item 1 - type - amount - 100 + type + amount + 100 - select - amountUomId - label=Weight: Stone (st) + select + amountUomId + label=Weight: Stone (st) - clickAndWait - submitButton - + clickAndWait + submitButton + - clickAndWait - link=New Example - + clickAndWait + link=New Example + diff --git a/framework/testtools/testdef/seleniumxml/example/recorded/NewFeature.html b/framework/testtools/testdef/seleniumxml/example/recorded/NewFeature.html index 8c27e75f88..3703e24380 100644 --- a/framework/testtools/testdef/seleniumxml/example/recorded/NewFeature.html +++ b/framework/testtools/testdef/seleniumxml/example/recorded/NewFeature.html @@ -30,89 +30,89 @@ NewFeature - open - /example/control/EditExample - + open + /example/control/EditExample + - clickAndWait - link=Logout - + clickAndWait + link=Logout + - type - PASSWORD - ofbiz + type + PASSWORD + ofbiz - clickAndWait - //input[@value='Login'] - + clickAndWait + //input[@value='Login'] + - clickAndWait - link=Feature - + clickAndWait + link=Feature + - clickAndWait - searchButton - + clickAndWait + searchButton + - clickAndWait - link=New Example Feature - + clickAndWait + link=New Example Feature + - type - description - New Feature 1000 + type + description + New Feature 1000 - clickAndWait - submitButton - + clickAndWait + submitButton + - clickAndWait - link=Examples - + clickAndWait + link=Examples + - clickAndWait - //a[contains(@href, '/example/control/EditExampleFeature?exampleFeatureId=10000')] - + clickAndWait + //a[contains(@href, '/example/control/EditExampleFeature?exampleFeatureId=10000')] + - clickAndWait - link=Feature - + clickAndWait + link=Feature + - type - description - New Feature + type + description + New Feature - clickAndWait - searchButton - + clickAndWait + searchButton + - clickAndWait - link=10000 - + clickAndWait + link=10000 + - type - description - New Feature 1000 - updated + type + description + New Feature 1000 - updated - clickAndWait - submitButton - + clickAndWait + submitButton + diff --git a/framework/webtools/data/helpdata/HELP_WEBTOOLS.xml b/framework/webtools/data/helpdata/HELP_WEBTOOLS.xml index c65173c405..4d0671ed10 100644 --- a/framework/webtools/data/helpdata/HELP_WEBTOOLS.xml +++ b/framework/webtools/data/helpdata/HELP_WEBTOOLS.xml @@ -14,10 +14,10 @@ the specific language governing permissions and limitations under the License. -->
- The Webtools Introduction. + version="5.0" xmlns:xl="http://www.w3.org/1999/xlink" xmlns:xi="http://www.w3.org/2001/XInclude" + xsi:schemaLocation="http://docbook.org/ns/docbook ../../../content/dtd/docbook.xsd" + xmlns="http://docbook.org/ns/docbook"> + The Webtools Introduction.
\ No newline at end of file diff --git a/framework/webtools/webapp/webtools/entity/EditEntity.jsp b/framework/webtools/webapp/webtools/entity/EditEntity.jsp index 0c3f593c19..8d9b7043e1 100644 --- a/framework/webtools/webapp/webtools/entity/EditEntity.jsp +++ b/framework/webtools/webapp/webtools/entity/EditEntity.jsp @@ -411,20 +411,20 @@ A.listtext:hover {color:red;} + entity-alias CDATA #REQUIRED + entity-name CDATA #REQUIRED > + entity-alias CDATA #REQUIRED + name CDATA #REQUIRED + field CDATA #IMPLIED + prim-key CDATA #IMPLIED + group-by ( true | false ) "false" + function ( min | max | sum | avg | count | count-distinct | upper | lower ) #IMPLIED> + entity-alias CDATA #REQUIRED + rel-entity-alias CDATA #REQUIRED > --%> <%}%> diff --git a/framework/widget/src/org/ofbiz/widget/form/ModelFormField.java b/framework/widget/src/org/ofbiz/widget/form/ModelFormField.java index e414035655..2742392713 100644 --- a/framework/widget/src/org/ofbiz/widget/form/ModelFormField.java +++ b/framework/widget/src/org/ofbiz/widget/form/ModelFormField.java @@ -2075,11 +2075,11 @@ public class ModelFormField { return alsoHidden; } public String getType(){ - return this.type; + return this.type; } public String getImageLocation(){ - return this.imageLocation; + return this.imageLocation; } public String getDescription(Map context) { diff --git a/specialpurpose/build.xml b/specialpurpose/build.xml index ed44f0d6b4..2ad097ca68 100644 --- a/specialpurpose/build.xml +++ b/specialpurpose/build.xml @@ -29,7 +29,7 @@ oagis/build.xml, googlebase/build.xml, ebay/build.xml, - ebaystore/build.xml, + ebaystore/build.xml, projectmgr/build.xml, ldap/build.xml, crowd/build.xml, diff --git a/specialpurpose/ebay/data/helpdata/HELP_EBAY_AdvanceSearch.xml b/specialpurpose/ebay/data/helpdata/HELP_EBAY_AdvanceSearch.xml index 5d2faa16f0..b5e862ca7e 100644 --- a/specialpurpose/ebay/data/helpdata/HELP_EBAY_AdvanceSearch.xml +++ b/specialpurpose/ebay/data/helpdata/HELP_EBAY_AdvanceSearch.xml @@ -25,10 +25,10 @@ This screen allows the user to find products for export from ofbiz store to Ebay How to search products? select products store you want to export products example : OFBiz E-Commerce [9000] - select catalog 'eBay Catalog' - select category in example you can use 'Ebay E-Commerce ... [eBay_ECom_Category]' - select the other condition if you want - Press 'Find' button at the below of page to find products + select catalog 'eBay Catalog' + select category in example you can use 'Ebay E-Commerce ... [eBay_ECom_Category]' + select the other condition if you want + Press 'Find' button at the below of page to find products
diff --git a/specialpurpose/ebay/data/helpdata/HELP_EBAY_EditEbayConfiguration.xml b/specialpurpose/ebay/data/helpdata/HELP_EBAY_EditEbayConfiguration.xml index 4ac5992a35..90699ddfbf 100644 --- a/specialpurpose/ebay/data/helpdata/HELP_EBAY_EditEbayConfiguration.xml +++ b/specialpurpose/ebay/data/helpdata/HELP_EBAY_EditEbayConfiguration.xml @@ -29,17 +29,17 @@ This screen allows the user to create a new/edit Ebay Configuration for intregra Example product store is 'OFBiz E-Commerce Store [9000]') Enter 'Dev Id' (ex:f3586481-93c7-4aaf-ab87-d383d56b71b1) - Enter 'App Id' (ex:antwebc0f-9bf9-4829-998b-e5e8fb773ac) - Enter 'Cert Id' (ex:7f363bc0-11d6-489a-a54d-4a44de82f790) - Enter 'Token' (# token key generated from ebay account ex:AgAAAA**AQAAAA**aAAAAA**Ccn7Sg.....) - Enter 'Compatibility Level' (ex:635) - Enter 'Site Id' (ex:0=US ,15=AU) - Enter 'Xml Gateway Uri' (# sandbox + Enter 'App Id' (ex:antwebc0f-9bf9-4829-998b-e5e8fb773ac) + Enter 'Cert Id' (ex:7f363bc0-11d6-489a-a54d-4a44de82f790) + Enter 'Token' (# token key generated from ebay account ex:AgAAAA**AQAAAA**aAAAAA**Ccn7Sg.....) + Enter 'Compatibility Level' (ex:635) + Enter 'Site Id' (ex:0=US ,15=AU) + Enter 'Xml Gateway Uri' (# sandbox -eBayExport.xmlGatewayUri=https://api.sandbox.ebay.com/ws/api.dll # production -eBayExport.xmlGatewayUri=https://api.ebay.com/ws/api.dll) - Enter 'Custom XML' - Enter 'Web Site' (ebay) + Enter 'Custom XML' + Enter 'Web Site' (ebay) Press the 'Update' button to create configurations. diff --git a/specialpurpose/ebay/data/helpdata/HELP_EBAY_Features.xml b/specialpurpose/ebay/data/helpdata/HELP_EBAY_Features.xml index ac332579b6..a7c51242f4 100644 --- a/specialpurpose/ebay/data/helpdata/HELP_EBAY_Features.xml +++ b/specialpurpose/ebay/data/helpdata/HELP_EBAY_Features.xml @@ -17,25 +17,25 @@ License. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://docbook.org/ns/docbook ../../../../applications/content/dtd/docbook.xsd"> Ebay Features - - - Ebay configurations for ofbiz intregrate with ebay. - - - Setup shipping methods. - - - Export products into ebay categories. - - - Export products into ebay categories. - - - Import transactions from ebay - + + + Ebay configurations for ofbiz intregrate with ebay. + + + Setup shipping methods. + + + Export products into ebay categories. + + + Export products into ebay categories. + + + Import transactions from ebay + - Import orders from ebay - - + Import orders from ebay + +
diff --git a/specialpurpose/ebay/data/helpdata/HELP_EBAY_FindConfigurations.xml b/specialpurpose/ebay/data/helpdata/HELP_EBAY_FindConfigurations.xml index 75b1d01602..965b4c0ef2 100644 --- a/specialpurpose/ebay/data/helpdata/HELP_EBAY_FindConfigurations.xml +++ b/specialpurpose/ebay/data/helpdata/HELP_EBAY_FindConfigurations.xml @@ -21,34 +21,34 @@ The default screen is for the Ebay Configurations tab is 'Find Ebay Configurations'. It is used to locate existing configurations that have been created automatically by the system or manually by the user. It can also be used to create a new configurations or edit to integration between OFBiz and eBay. -
+
How to find Ebay configurations? - Select 'product store' you want to see configuration. - (Example product store is 'OFBiz E-Commerce Store [9000]') - + Select 'product store' you want to see configuration. + (Example product store is 'OFBiz E-Commerce Store [9000]') + - Select 'web site' if known. - - Press the 'Search' button to view configurations. - Select 'Any' then Press the 'Search' button to view all configurations. - + Select 'web site' if known. + + Press the 'Search' button to view configurations. + Select 'Any' then Press the 'Search' button to view all configurations. +
Edit Ebay configurations. - Press 'Edit' button at product store you want to edit configuration.System will show screen for edit configuration data. - - + Press 'Edit' button at product store you want to edit configuration.System will show screen for edit configuration data. + +
Delete Ebay configurations. - Press 'Delete' button at product store you want to delete configuration. - - + Press 'Delete' button at product store you want to delete configuration. + +
diff --git a/specialpurpose/ebay/data/helpdata/HELP_EBAY_ManageOrdersFromEbay.xml b/specialpurpose/ebay/data/helpdata/HELP_EBAY_ManageOrdersFromEbay.xml index 4373fc09d3..aa2c4e9249 100644 --- a/specialpurpose/ebay/data/helpdata/HELP_EBAY_ManageOrdersFromEbay.xml +++ b/specialpurpose/ebay/data/helpdata/HELP_EBAY_ManageOrdersFromEbay.xml @@ -25,9 +25,9 @@ This screen allows the user to find orders transactions on ebay by specify begin Section 'Search Single Transactions From eBay'.(use for select conditions to search results) select product store ex: use 'OFBiz E-Commerce Store' because example ebay catalog link with this store. - enter begin time in field 'From Date Time' - enter end time in field 'Thru Date Time' - Press 'Search Single Transactions From eBay' button then system will show results from ebay site. + enter begin time in field 'From Date Time' + enter end time in field 'Thru Date Time' + Press 'Search Single Transactions From eBay' button then system will show results from ebay site.
@@ -40,8 +40,8 @@ This screen allows the user to find orders transactions on ebay by specify begin How to import single transactions from eBay? - Click checkbox at rows you want to import transaction in the 'Import Orders From eBay' section - Press 'Import Single Transactions' button then system will return the message on the screen. + Click checkbox at rows you want to import transaction in the 'Import Orders From eBay' section + Press 'Import Single Transactions' button then system will return the message on the screen.
diff --git a/specialpurpose/ebay/data/helpdata/HELP_EBAY_ProductsExportToEbay.xml b/specialpurpose/ebay/data/helpdata/HELP_EBAY_ProductsExportToEbay.xml index f4b1170b70..0572a330a6 100644 --- a/specialpurpose/ebay/data/helpdata/HELP_EBAY_ProductsExportToEbay.xml +++ b/specialpurpose/ebay/data/helpdata/HELP_EBAY_ProductsExportToEbay.xml @@ -21,22 +21,22 @@ This screen allows the user to setup properties of products for the start auction on ebay, And allows the user to export product to the ebay site. On the 'Export Products to eBay' section have many fields to use for start auction listing(products) on the ebay site. -
- Fields Description : - - eBay Category : Ofbiz retrieve this field from ebay categories and threre are several levels. You may need to select several time to get your categories for example : Your product is in "Drawing" category but the category is lower level of "Art" and ".......". So you need to select "Art" first and .... and "Drawing" to get the category. - Country : use for select country you want to show the listing on the ebay site. - Location : for located item location. - Listing Duration is a duration for auction and show the listing on ebay. - Start Price is a price for start auction (note : if you product have a minimum price(* Purpose is 'eBay Auction') don't need to set this field, the system will auto use the minimum price for start auctions. ) - Quantity : Quantity of product - Website : - Web Site Url : - Payment Methods Accepted : This is Type of payment you want to use on the ebay. - PayPal email : We need it when you select payment by paypal. - Custom XML : It was auto generate from ebay configurations, it use for ebay know about currency, shipping method and other informations for shipping with this listing. - -
+
+ Fields Description : + + eBay Category : Ofbiz retrieve this field from ebay categories and threre are several levels. You may need to select several time to get your categories for example : Your product is in "Drawing" category but the category is lower level of "Art" and ".......". So you need to select "Art" first and .... and "Drawing" to get the category. + Country : use for select country you want to show the listing on the ebay site. + Location : for located item location. + Listing Duration is a duration for auction and show the listing on ebay. + Start Price is a price for start auction (note : if you product have a minimum price(* Purpose is 'eBay Auction') don't need to set this field, the system will auto use the minimum price for start auctions. ) + Quantity : Quantity of product + Website : + Web Site Url : + Payment Methods Accepted : This is Type of payment you want to use on the ebay. + PayPal email : We need it when you select payment by paypal. + Custom XML : It was auto generate from ebay configurations, it use for ebay know about currency, shipping method and other informations for shipping with this listing. + +
How to set export products? diff --git a/specialpurpose/ebay/data/helpdata/HELP_EBAY_ShippingMethods.xml b/specialpurpose/ebay/data/helpdata/HELP_EBAY_ShippingMethods.xml index 2eea82dadf..af1d395b36 100644 --- a/specialpurpose/ebay/data/helpdata/HELP_EBAY_ShippingMethods.xml +++ b/specialpurpose/ebay/data/helpdata/HELP_EBAY_ShippingMethods.xml @@ -25,13 +25,13 @@ This screen allows the user to add shipping methods rate for intregrate ofbiz an How to add shipping methods? Enter 'Shipment Method Name ' (ex:'LocalDelivery') - Select 'product store' (ex:'OFBiz E-Commerce Store [9000]') - Enter 'Amount' - Enter 'Additional Amount' (if you want ) - Enter 'Additional Percent' (if you want ) - Enter 'Method Type Enum Id' (ex:Flat Rate Shipping) - Enter 'Carrier Party Id' select from lookup (Default is UPS) - select 'Shipment Method Type Id' + Select 'product store' (ex:'OFBiz E-Commerce Store [9000]') + Enter 'Amount' + Enter 'Additional Amount' (if you want ) + Enter 'Additional Percent' (if you want ) + Enter 'Method Type Enum Id' (ex:Flat Rate Shipping) + Enter 'Carrier Party Id' select from lookup (Default is UPS) + select 'Shipment Method Type Id' Press the 'Add' button to add shipping method. diff --git a/specialpurpose/ebay/data/helpdata/HELP_EBAY_eBayOrders.xml b/specialpurpose/ebay/data/helpdata/HELP_EBAY_eBayOrders.xml index 40ea39259c..b6f261f2d9 100644 --- a/specialpurpose/ebay/data/helpdata/HELP_EBAY_eBayOrders.xml +++ b/specialpurpose/ebay/data/helpdata/HELP_EBAY_eBayOrders.xml @@ -25,9 +25,9 @@ This screen allows the user to find and import orders data from ebay site. you c Section 'Search Options'. select product store ex: use 'OFBiz E-Commerce Store' because example ebay catalog link with this store. - enter begin time in field 'From Date Time' - enter end time in field 'Thru Date Time' - Press 'Find' button then system will show results from ebay site. + enter begin time in field 'From Date Time' + enter end time in field 'Thru Date Time' + Press 'Find' button then system will show results from ebay site.
@@ -40,8 +40,8 @@ This screen allows the user to find and import orders data from ebay site. you c How to import order from eBay? - Click checkbox at rows you want to import orders in the 'Search Result' section - Press 'Import Orders From ebay' button then system will return the message on the screen. and you can check orders list in the 'Order' module. + Click checkbox at rows you want to import orders in the 'Search Result' section + Press 'Import Orders From ebay' button then system will return the message on the screen. and you can check orders list in the 'Order' module.
diff --git a/specialpurpose/ebay/data/helpdata/HELP_EBAY_main.xml b/specialpurpose/ebay/data/helpdata/HELP_EBAY_main.xml index a6172928c0..02ead3322c 100644 --- a/specialpurpose/ebay/data/helpdata/HELP_EBAY_main.xml +++ b/specialpurpose/ebay/data/helpdata/HELP_EBAY_main.xml @@ -31,43 +31,43 @@ How to setup OFBiz integration eBay. Register with ebay developer site for obtain keys and certificate (eBayExport.devId,eBayExport.appId,eBayExport.cerId and eBayExport.token etc.) at Join with ebay developers - - - After registered it should be following the keys below :# ebay keys example - - eBayExport.devID=f3586481-93c7-4aaf-ab87-d383d56b71b1 - eBayExport.appID=antwebc0f-9bf9-4829-998b-e5e8fb773ac - eBayExport.certID=7f363bc0-11d6-489a-a54d-4a44de82f790 - - # token key generated from ebay account example : - - eBayExport.token=AgAAAA**AQAAAA**aAAAAA**Ccn7Sg..... - - - + + + After registered it should be following the keys below :# ebay keys example + + eBayExport.devID=f3586481-93c7-4aaf-ab87-d383d56b71b1 + eBayExport.appID=antwebc0f-9bf9-4829-998b-e5e8fb773ac + eBayExport.certID=7f363bc0-11d6-489a-a54d-4a44de82f790 + + # token key generated from ebay account example : + + eBayExport.token=AgAAAA**AQAAAA**aAAAAA**Ccn7Sg..... + + + - - Following file in specialpurpose/ebay/config/eBayExport.properties. You will see Merchant configurations. - For : - eBayExport.xmlGatewayUri : - - https://api.sandbox.ebay.com/ws/api.dll (sandbox environment used for testing and develoment )if you want to use for testing should select sandbox enviroment. - https://api.ebay.com/ws/api.dll (production environment). - - For : eBayExport.siteID : - - It was siteId you want to sell products ex: site id (0=US, 101=Italy, ...) obtain from SiteCodeType - - - - - + + Following file in specialpurpose/ebay/config/eBayExport.properties. You will see Merchant configurations. + For : + eBayExport.xmlGatewayUri : + + https://api.sandbox.ebay.com/ws/api.dll (sandbox environment used for testing and develoment )if you want to use for testing should select sandbox enviroment. + https://api.ebay.com/ws/api.dll (production environment). + + For : eBayExport.siteID : + + It was siteId you want to sell products ex: site id (0=US, 101=Italy, ...) obtain from SiteCodeType + + + + + - - Go to ebay-->Ebay Configurations screen(see link in the bottom of page) This screen will displayed ebay configurations with each stores. You need to “add” or “edit” the configuration keys you got from ebay for each productstores into this screen. This configuration is for connect to ebay site and export or import data to ebay. - - + + Go to ebay-->Ebay Configurations screen(see link in the bottom of page) This screen will displayed ebay configurations with each stores. You need to “add” or “edit” the configuration keys you got from ebay for each productstores into this screen. This configuration is for connect to ebay site and export or import data to ebay. + + Go to ebay-->Export to eBay screen or eBay orders Import then try to test export products and import orders from ebay. diff --git a/specialpurpose/ebay/src/org/ofbiz/ebay/ProductsExportToEbay.java b/specialpurpose/ebay/src/org/ofbiz/ebay/ProductsExportToEbay.java index ea004323b2..ff3a266939 100755 --- a/specialpurpose/ebay/src/org/ofbiz/ebay/ProductsExportToEbay.java +++ b/specialpurpose/ebay/src/org/ofbiz/ebay/ProductsExportToEbay.java @@ -245,7 +245,7 @@ public class ProductsExportToEbay { String listingFormat = ""; if (UtilValidate.isNotEmpty(context.get("listingFormat"))) { - listingFormat = (String) context.get("listingFormat"); + listingFormat = (String) context.get("listingFormat"); UtilXml.addChildElementValue(itemElem, "ListingType", listingFormat, itemDocument); } if (listingFormat.equals("FixedPriceItem")) { diff --git a/specialpurpose/ebaystore/build.xml b/specialpurpose/ebaystore/build.xml index 45d51b9b28..02f36ef465 100644 --- a/specialpurpose/ebaystore/build.xml +++ b/specialpurpose/ebaystore/build.xml @@ -29,7 +29,7 @@ under the License. - + @@ -46,6 +46,6 @@ under the License. - + diff --git a/specialpurpose/ebaystore/data/DemoEbayStoreData.xml b/specialpurpose/ebaystore/data/DemoEbayStoreData.xml index 391ed57c93..1bc4b747c7 100644 --- a/specialpurpose/ebaystore/data/DemoEbayStoreData.xml +++ b/specialpurpose/ebaystore/data/DemoEbayStoreData.xml @@ -51,10 +51,10 @@ - Demo : Automatically send a Winning Buyer Notification email to your winning buyer(s) after item has sold. - ]]> - + + Demo : Automatically send a Winning Buyer Notification email to your winning buyer(s) after item has sold. + ]]> + @@ -62,10 +62,10 @@ - Demo : Automatically send Payment Received email when payment has been received. - ]]> - + + Demo : Automatically send Payment Received email when payment has been received. + ]]> + @@ -73,10 +73,10 @@ - Demo : Automatically send a Feedback Reminder email if feedback has not been received. Please choose how many days after shipping you want this email sent. - ]]> - + + Demo : Automatically send a Feedback Reminder email if feedback has not been received. Please choose how many days after shipping you want this email sent. + ]]> + diff --git a/specialpurpose/ebaystore/data/EbayStoreTypeData.xml b/specialpurpose/ebaystore/data/EbayStoreTypeData.xml index 9666813656..33c93b6307 100644 --- a/specialpurpose/ebaystore/data/EbayStoreTypeData.xml +++ b/specialpurpose/ebaystore/data/EbayStoreTypeData.xml @@ -27,7 +27,7 @@ under the License. - + @@ -38,13 +38,13 @@ under the License. - - - - + + + + - + diff --git a/specialpurpose/ebaystore/data/helpdata/HELP_EBAY_LeaveFeedback.xml b/specialpurpose/ebaystore/data/helpdata/HELP_EBAY_LeaveFeedback.xml index 6221729487..1cffd7f8be 100644 --- a/specialpurpose/ebaystore/data/helpdata/HELP_EBAY_LeaveFeedback.xml +++ b/specialpurpose/ebaystore/data/helpdata/HELP_EBAY_LeaveFeedback.xml @@ -18,22 +18,22 @@ xsi:schemaLocation="http://docbook.org/ns/docbook ../../../content/dtd/docbook.xsd" xmlns="http://docbook.org/ns/docbook"> EBay Leave Feedback help screen. -
-
- - This screen have 3 tab button All, bought, sold. "All" = bought and sold, "bought" = this account is buyer, "sold" = this account is seller. - All item in the list can leave message to buyer and seller multi action that mean each item is seperated. If item is bought it have 3 options to select - and then when select "Positive", "Neutral" and "Negative" a rating section appear,add rating to seller, and comment, if select "I'll leave Feedback later" a rating section disappear. - If item is sold it have 2 options to select and then when select "Positive" a comment box appear to add comment text to buyer, if select "I'll leave Feedback later" this comment box will disappear. - -
-
- - Note : - - - If you don't add comment in text box, leave feedback don't send. - -
-
+
+
+ + This screen have 3 tab button All, bought, sold. "All" = bought and sold, "bought" = this account is buyer, "sold" = this account is seller. + All item in the list can leave message to buyer and seller multi action that mean each item is seperated. If item is bought it have 3 options to select + and then when select "Positive", "Neutral" and "Negative" a rating section appear,add rating to seller, and comment, if select "I'll leave Feedback later" a rating section disappear. + If item is sold it have 2 options to select and then when select "Positive" a comment box appear to add comment text to buyer, if select "I'll leave Feedback later" this comment box will disappear. + +
+
+ + Note : + + + If you don't add comment in text box, leave feedback don't send. + +
+
\ No newline at end of file diff --git a/specialpurpose/ebaystore/src/org/ofbiz/ebaystore/EbayStore.java b/specialpurpose/ebaystore/src/org/ofbiz/ebaystore/EbayStore.java index 36ba2b2ac8..259ac402b3 100644 --- a/specialpurpose/ebaystore/src/org/ofbiz/ebaystore/EbayStore.java +++ b/specialpurpose/ebaystore/src/org/ofbiz/ebaystore/EbayStore.java @@ -1449,7 +1449,7 @@ public class EbayStore { entry.put("buyer", buyer); String buyerEmail = null; if (sellingManagerSoldOrder.getBuyerID() != null) { - buyerEmail = sellingManagerSoldOrder.getBuyerEmail(); + buyerEmail = sellingManagerSoldOrder.getBuyerEmail(); } entry.put("buyerEmail", buyerEmail); GetItemCall api = new GetItemCall(apiContext); @@ -1504,7 +1504,7 @@ public class EbayStore { shippedStatus = sellingManagerSoldOrder.getOrderStatus().getShippedStatus().value(); } if (sellingManagerSoldOrder.getOrderStatus().getShippedTime() != null) { - shippedTime = sellingManagerSoldOrder.getOrderStatus().getShippedTime().getTime(); + shippedTime = sellingManagerSoldOrder.getOrderStatus().getShippedTime().getTime(); } } entry.put("paidTime", paidTime); diff --git a/specialpurpose/ebaystore/webapp/ebaystore/WEB-INF/actions/email/GetProductStoreEmailTemplate.groovy b/specialpurpose/ebaystore/webapp/ebaystore/WEB-INF/actions/email/GetProductStoreEmailTemplate.groovy index 26d0bd897a..76bd5487cb 100644 --- a/specialpurpose/ebaystore/webapp/ebaystore/WEB-INF/actions/email/GetProductStoreEmailTemplate.groovy +++ b/specialpurpose/ebaystore/webapp/ebaystore/WEB-INF/actions/email/GetProductStoreEmailTemplate.groovy @@ -22,13 +22,13 @@ import org.ofbiz.base.util.*; contentId = null; contentRoles = delegator.findByAnd("ContentRole", UtilMisc.toMap("partyId", partyId, "roleTypeId", "OWNER")); if (contentRoles.size() != 0) { - contentRoles.each { contentRole-> - contents = delegator.findByAnd("Content", UtilMisc.toMap("contentId", contentRole.getString("contentId"), "ownerContentId", emailType)); - if (contents.size() != 0) { - if (emailType.equals(contents.get(0).getString("ownerContentId"))) { - contentId = contents.get(0).getString("contentId"); - } - } - } + contentRoles.each { contentRole-> + contents = delegator.findByAnd("Content", UtilMisc.toMap("contentId", contentRole.getString("contentId"), "ownerContentId", emailType)); + if (contents.size() != 0) { + if (emailType.equals(contents.get(0).getString("ownerContentId"))) { + contentId = contents.get(0).getString("contentId"); + } + } + } } context.contentId = contentId; \ No newline at end of file diff --git a/specialpurpose/ebaystore/widget/EbayAccountForms.xml b/specialpurpose/ebaystore/widget/EbayAccountForms.xml index e8c044444f..1830b388ba 100644 --- a/specialpurpose/ebaystore/widget/EbayAccountForms.xml +++ b/specialpurpose/ebaystore/widget/EbayAccountForms.xml @@ -20,7 +20,7 @@ under the License. -
+ diff --git a/specialpurpose/ecommerce/webapp/ecommerce/images/checkoutProcess.js b/specialpurpose/ecommerce/webapp/ecommerce/images/checkoutProcess.js index cbedbe1e47..55be5e51aa 100644 --- a/specialpurpose/ecommerce/webapp/ecommerce/images/checkoutProcess.js +++ b/specialpurpose/ecommerce/webapp/ecommerce/images/checkoutProcess.js @@ -275,7 +275,7 @@ function getShipOptions() { var shipOptions = null; var optionList = []; if ($F('shipMethod') == "" || $F('shipMethod') == null) { - new Ajax.Request('getShipOptions', { + new Ajax.Request('getShipOptions', { asynchronous: false, onSuccess: function(transport) { var data = transport.responseText.evalJSON(true); @@ -586,7 +586,7 @@ function updateShippingSummary() { } function updateBillingSummary() { - var fullName = $F('firstNameOnCard') + " " +$F('lastNameOnCard'); + var fullName = $F('firstNameOnCard') + " " +$F('lastNameOnCard'); $('completedBillToAttn').update("Attn: " + fullName); var extension = ""; if ($F('billToExtension')) { diff --git a/specialpurpose/ecommerce/webapp/ecommerce/images/profile.js b/specialpurpose/ecommerce/webapp/ecommerce/images/profile.js index f7b88992b8..b3d8738862 100644 --- a/specialpurpose/ecommerce/webapp/ecommerce/images/profile.js +++ b/specialpurpose/ecommerce/webapp/ecommerce/images/profile.js @@ -128,8 +128,8 @@ function validatePhoneNumber(errorDivId, focusedTextId, textToCheck1, textToChec } function submitValidNewUser() { - validatePhoneNumber('shipToPhoneRequired', 'shipToContactNumber', 'shipToCountryCode', 'shipToAreaCode'); - validatePhoneNumber('billToPhoneRequired', 'billToContactNumber', 'billToCountryCode', 'billToAreaCode'); + validatePhoneNumber('shipToPhoneRequired', 'shipToContactNumber', 'shipToCountryCode', 'shipToAreaCode'); + validatePhoneNumber('billToPhoneRequired', 'billToContactNumber', 'billToCountryCode', 'billToAreaCode'); if (validateNewUser.validate()) { $('newUserForm').submit(); } @@ -172,7 +172,7 @@ function useShippingAddressAsBillingToggle() { copyShipToBillAddress(); hideErrorMessage(); } else { - validBillingAddress(); + validBillingAddress(); stopObservingShipToBillAddress(); $('billToAddress1').disabled = false ; $('billToAddress2').disabled = false ; diff --git a/specialpurpose/ofbizwebsite/webapp/ofbiz/images/global.css b/specialpurpose/ofbizwebsite/webapp/ofbiz/images/global.css index 06c675b6ea..b68a1fd7a6 100644 --- a/specialpurpose/ofbizwebsite/webapp/ofbiz/images/global.css +++ b/specialpurpose/ofbizwebsite/webapp/ofbiz/images/global.css @@ -79,11 +79,11 @@ body > #wrap {height: auto; min-height: 100%;} body { font: 11px/ 165% "Lucida Grande", Geneva, Verdana, Arial, Helvetica, sans-serif; - color: #666666; - margin: 0; - padding: 0; - background: url(/ofbiz/images/bg.png) top left repeat-x #b5b5b5; - text-align: center; + color: #666666; + margin: 0; + padding: 0; + background: url(/ofbiz/images/bg.png) top left repeat-x #b5b5b5; + text-align: center; } .clearfix:after { @@ -118,60 +118,60 @@ html[xmlns] .clearfix { Typography ********************************/ a,a:active,a:link { - text-decoration: none; - color: #0066CC; + text-decoration: none; + color: #0066CC; } a:visited { - text-decoration: none; + text-decoration: none; } a:hover { - color: #030d1c; + color: #030d1c; } h1,h2,h3 { - font-family: "Trebuchet MS", Tahoma, Arial, Sans-serif; - color: #555; + font-family: "Trebuchet MS", Tahoma, Arial, Sans-serif; + color: #555; } h1 { - font-family: "Lucida Grande", Geneva, Verdana, Arial, Helvetica, sans-serif; - font-size: 350%; - font-weight: normal; - letter-spacing: -2px; - padding: 15px 10px 5px 10px; - margin: 0; + font-family: "Lucida Grande", Geneva, Verdana, Arial, Helvetica, sans-serif; + font-size: 350%; + font-weight: normal; + letter-spacing: -2px; + padding: 15px 10px 5px 10px; + margin: 0; } h2 { - font-size: 200%; - color: #895F30; - padding: 20px 10px 5px 10px; - margin: 0; + font-size: 200%; + color: #895F30; + padding: 20px 10px 5px 10px; + margin: 0; } h3 { - font-size: 170%; - font-weight: normal; - padding: 20px 10px 5px 10px; - margin: 0; + font-size: 170%; + font-weight: normal; + padding: 20px 10px 5px 10px; + margin: 0; } h4 { - font-size: 100%; - font-weight: bolder; - color: #000000; - padding: 20px 10px 5px 10px; - margin: 0; + font-size: 100%; + font-weight: bolder; + color: #000000; + padding: 20px 10px 5px 10px; + margin: 0; } strong { font-size: 100%; - font-weight: bolder; - color: #000000; - padding: 20px 10px 5px 10px; - margin: 0; + font-weight: bolder; + color: #000000; + padding: 20px 10px 5px 10px; + margin: 0; } p{ @@ -179,31 +179,31 @@ p{ } p,dl { - padding: 10px; - margin: 0; + padding: 10px; + margin: 0; } ul{ - margin: 10px 10px; - padding: 0 0 0 10px; + margin: 10px 10px; + padding: 0 0 0 10px; } ul { - list-style: none; + list-style: none; } ol { - margin: 10px 30px; - padding: 0; + margin: 10px 30px; + padding: 0; } dt { - font-weight: bold; - color: #b13f1a; + font-weight: bold; + color: #b13f1a; } dd { - padding-left: 25px; + padding-left: 25px; } /******************************** @@ -265,28 +265,28 @@ blockquote { Tables ********************************/ table { - border-collapse: collapse; - margin: 15px 10px; + border-collapse: collapse; + margin: 15px 10px; } th { - background: #d14b1f url(/ofbiz/images/header-bg.jpg) repeat-x 0 -100px; - height: 38px; - padding-left: 12px; - padding-right: 12px; - color: #fff; - text-align: left; - border-left: 1px solid #d14b1f; - border-bottom: solid 2px #fff; + background: #d14b1f url(/ofbiz/images/header-bg.jpg) repeat-x 0 -100px; + height: 38px; + padding-left: 12px; + padding-right: 12px; + color: #fff; + text-align: left; + border-left: 1px solid #d14b1f; + border-bottom: solid 2px #fff; } tr { - height: 34px; + height: 34px; } td { - padding-left: 11px; - padding-right: 11px; + padding-left: 11px; + padding-right: 11px; } /******************************** @@ -356,20 +356,20 @@ input.button { #wrap{ background: #fff url(/ofbiz/images/wrapper.jpg) top center no-repeat; width: 945px; - margin: 0 auto; + margin: 0 auto; text-align:left; } #content-wrap { width:945px; - margin:0 auto; + margin:0 auto; padding-bottom: 42px; } #content { width:500px; - float:left; - padding:30px 0 25px 0; + float:left; + padding:30px 0 25px 0; } /******************************** @@ -378,11 +378,11 @@ input.button { #footer { background: url(/ofbiz/images/footer.jpg) bottom center no-repeat; position: relative; - margin: -42px auto 0px auto; - height: 42px; - clear:both; - font-size:11px; - font-family:Verdana, Arial, sans-serif; + margin: -42px auto 0px auto; + height: 42px; + clear:both; + font-size:11px; + font-family:Verdana, Arial, sans-serif; width:945px; } @@ -543,20 +543,20 @@ input.button { } #main h2 { - padding-bottom: 3px; - margin-top: 15px; - font: normal 2.5em "Lucida Grande", Geneva, Verdana, Arial, Helvetica, sans-serif; - color: #333; - letter-spacing: -2px; - text-transform: none; - border-bottom: 1px solid #ebebeb; + padding-bottom: 3px; + margin-top: 15px; + font: normal 2.5em "Lucida Grande", Geneva, Verdana, Arial, Helvetica, sans-serif; + color: #333; + letter-spacing: -2px; + text-transform: none; + border-bottom: 1px solid #ebebeb; } #main h2 a { - color: #333; - text-decoration: none; - background: none; - border: none; + color: #333; + text-decoration: none; + background: none; + border: none; } #main ul li { @@ -590,51 +590,51 @@ input.button { } #main #col1 h2, #main #col2 h2 { - border-bottom: 1px solid #ebebeb; - color:#304C70; - padding-bottom: 3px; - letter-spacing: -3px; - text-transform: none; - font-size:30px; + border-bottom: 1px solid #ebebeb; + color:#304C70; + padding-bottom: 3px; + letter-spacing: -3px; + text-transform: none; + font-size:30px; } .feature { - margin:0px; - padding:0px; - height:435px; + margin:0px; + padding:0px; + height:435px; } .screen { - margin:10px 0 5px 0; - padding:0px; - background:#fff; - border:1px solid #eee; - width:255px; - height:200px; - overflow:hidden; + margin:10px 0 5px 0; + padding:0px; + background:#fff; + border:1px solid #eee; + width:255px; + height:200px; + overflow:hidden; } #main .hero { - margin:10px 0 5px 0; - padding:0px; - background:#fff; - border:1px solid #eee; - width:555px; + margin:10px 0 5px 0; + padding:0px; + background:#fff; + border:1px solid #eee; + width:555px; } #main .highlights { - float:right; - width:240px; - background:#dfe9ef; - border:1px solid #eee; - margin:0px 10px 0px 5px; - display:inline; + float:right; + width:240px; + background:#dfe9ef; + border:1px solid #eee; + margin:0px 10px 0px 5px; + display:inline; } #main .form { - width:240px; - margin:0px 10px 0px 5px; - display:inline; + width:240px; + margin:0px 10px 0px 5px; + display:inline; } #main .highlights ul li { @@ -642,7 +642,7 @@ input.button { } #main .highlights h4 { - padding:5px 5px 0 5px; + padding:5px 5px 0 5px; } #sidebar { @@ -792,160 +792,160 @@ p.thumbs { ********************************/ /*HOME*/ body#home #wrap { - position: relative; - background: #fff url(/ofbiz/images/home-wrapper.jpg) top center no-repeat; - width: 945px; - margin: 0 auto; - text-align: left; + position: relative; + background: #fff url(/ofbiz/images/home-wrapper.jpg) top center no-repeat; + width: 945px; + margin: 0 auto; + text-align: left; } body#home #header { - position: relative; - width: 945px; - height: 403px; - padding: 0; - margin: 0 auto; - background: transparent; + position: relative; + width: 945px; + height: 403px; + padding: 0; + margin: 0 auto; + background: transparent; } body#home #header #slides { - position: absolute; - top: 128px; - left: 10px; - background: url(/ofbiz/images/slideshow-bg.jpg) top center no-repeat; - width: 923px; - height: 260px; + position: absolute; + top: 128px; + left: 10px; + background: url(/ofbiz/images/slideshow-bg.jpg) top center no-repeat; + width: 923px; + height: 260px; } body#home #header #slides .slideshow { - width:923px; - height:260px; - margin:0px; - padding:0px; + width:923px; + height:260px; + margin:0px; + padding:0px; } body#home #header #slides .callout { - position: absolute; - top: 35px; - left: 30px; - font-size: 30px; - line-height: 30px; - color: #2b1f48; + position: absolute; + top: 35px; + left: 30px; + font-size: 30px; + line-height: 30px; + color: #2b1f48; } body#home #header #slides .description { - position: absolute; - top: 175px; - left: 30px; - font-size: 14px; - line-height: 15px; - color: #e0e0e0; - width: 350px; + position: absolute; + top: 175px; + left: 30px; + font-size: 14px; + line-height: 15px; + color: #e0e0e0; + width: 350px; } body#home #header #slides .controls { - width: 100px; - position: absolute; - top: 15px; - left: 750px; - height:30px; + width: 100px; + position: absolute; + top: 15px; + left: 750px; + height:30px; } body#home #header #slides .controls a { - border: none; - position:absolute; - height:30px; - line-height:24px; - padding:5px; - text-indent:-9999px; - outline:none; + border: none; + position:absolute; + height:30px; + line-height:24px; + padding:5px; + text-indent:-9999px; + outline:none; } body#home #header #slides .controls a.previous { - background: url(/ofbiz/images/backward.gif) top center no-repeat; - left:0px; - height:30px; - width:16px; + background: url(/ofbiz/images/backward.gif) top center no-repeat; + left:0px; + height:30px; + width:16px; } body#home #header #slides .controls a.next { - background: url(/ofbiz/images/forward.gif) top center no-repeat; - left:60px; - height:30px; - width:16px; + background: url(/ofbiz/images/forward.gif) top center no-repeat; + left:60px; + height:30px; + width:16px; } body#home #header #slides .controls a.stop { - background: url(/ofbiz/images/pause.gif) top center no-repeat; - left:30px; - height:30px; - width:16px; + background: url(/ofbiz/images/pause.gif) top center no-repeat; + left:30px; + height:30px; + width:16px; } body#home #header #slides .controls a.start { - background: url(/ofbiz/images/start.gif) top center no-repeat; - left:30px; - height:30px; - width:16px; + background: url(/ofbiz/images/start.gif) top center no-repeat; + left:30px; + height:30px; + width:16px; } body#home #header #slides .controls a img { - background: none; - border: none; - cursor: pointer; + background: none; + border: none; + cursor: pointer; } body#home #header #slides .mantle{ - position:absolute; - top:58px; - left:385px; + position:absolute; + top:58px; + left:385px; } body#home #col1 { - float: left; - width: 260px; - padding: 0; - margin: 5px 0 0 0px; - display: inline; + float: left; + width: 260px; + padding: 0; + margin: 5px 0 0 0px; + display: inline; } body#home #col2 { - float: left; - width: 260px; - padding: 0; - margin: 5px 0 0 20px; - display: inline; + float: left; + width: 260px; + padding: 0; + margin: 5px 0 0 20px; + display: inline; } .downloadNow { - margin:30px 0 10px 0; + margin:30px 0 10px 0; } .downloadLinks span.docs { - float:left; - margin:0px 0px 0 0; - display:inline; + float:left; + margin:0px 0px 0 0; + display:inline; } .downloadLinks span.previousVersions { - float:right; - margin:0px 20px 0 0; - display:inline; + float:right; + margin:0px 20px 0 0; + display:inline; } /*SUBPAGE - NO SIDEBAR*/ body#full #wrap { - position: relative; - background: #ffffff url(/ofbiz/images/full-wrapper.jpg) top center no-repeat; - width: 945px; - margin: 0 auto; - text-align: left; + position: relative; + background: #ffffff url(/ofbiz/images/full-wrapper.jpg) top center no-repeat; + width: 945px; + margin: 0 auto; + text-align: left; } body#semi #wrap { - position: relative; - background: #ffffff url(/ofbiz/images/wrapper.jpg) top center no-repeat; - width: 945px; - margin: 0 auto; - text-align: left; + position: relative; + background: #ffffff url(/ofbiz/images/wrapper.jpg) top center no-repeat; + width: 945px; + margin: 0 auto; + text-align: left; } diff --git a/specialpurpose/ofbizwebsite/webapp/ofbiz/images/rsscss.css b/specialpurpose/ofbizwebsite/webapp/ofbiz/images/rsscss.css index 1a54945e5d..d55fbd761d 100644 --- a/specialpurpose/ofbizwebsite/webapp/ofbiz/images/rsscss.css +++ b/specialpurpose/ofbizwebsite/webapp/ofbiz/images/rsscss.css @@ -19,10 +19,10 @@ /* border table for feed news */ .fd_bordertable { - background: #FFFFFF; - border-style: solid; border-width: 1px; border-color: #CCCCCC; - padding: 0; - width: 100%; + background: #FFFFFF; + border-style: solid; border-width: 1px; border-color: #CCCCCC; + padding: 0; + width: 100%; } /* maintable table for feed news */ @@ -30,25 +30,25 @@ /* header cell with header text and xml button */ .fd_header { - padding: 5px; - padding-left: 4px; - background: #000099; - color: white; - font-family: Verdana, Arial, Helvetica, sans-serif; - font-size: 8pt; - font-weight: bold; - text-align: left; - vertical-align: top; - width: 100%; + padding: 5px; + padding-left: 4px; + background: #000099; + color: white; + font-family: Verdana, Arial, Helvetica, sans-serif; + font-size: 8pt; + font-weight: bold; + text-align: left; + vertical-align: top; + width: 100%; } /* item description area */ .fd_itemcell { - padding: 10px; - line-height: 16px; - background: #FAFAFA; color: black; - font-family: Verdana, Arial, Helvetica, sans-serif; - font-size: 12px + padding: 10px; + line-height: 16px; + background: #FAFAFA; color: black; + font-family: Verdana, Arial, Helvetica, sans-serif; + font-size: 12px } /* item link properties, such as text-decoration and etc */ diff --git a/specialpurpose/ofbizwebsite/webapp/ofbiz/script/slides.js b/specialpurpose/ofbizwebsite/webapp/ofbiz/script/slides.js index fafc2a68c2..64f03e8446 100644 --- a/specialpurpose/ofbizwebsite/webapp/ofbiz/script/slides.js +++ b/specialpurpose/ofbizwebsite/webapp/ofbiz/script/slides.js @@ -19,110 +19,110 @@ var Slides = Class.create({ - initialize: function(element, options) { - this.options = { - Duration: 1, - Delay: 10.0, - Random: true, - Slideshow:true, - Controls:true - } - Object.extend(this.options, options || {}); + initialize: function(element, options) { + this.options = { + Duration: 1, + Delay: 10.0, + Random: true, + Slideshow:true, + Controls:true + } + Object.extend(this.options, options || {}); - this.element = $(element); - this.slides = this.element.childElements(); - this.num_slides = this.slides.length; - this.current_slide = (this.options.Random) ? (Math.floor(Math.random()*this.num_slides)) : 0; - this.end_slide = this.num_slides - 1; - - this.slides.invoke('hide'); - this.slides[this.current_slide].show(); - - if (this.options.Slideshow) { - this.startSlideshow(); - } - if (this.options.Controls) { - this.addControls(); - } - }, - - addControls: function() { - this.btn_previous = $('previous'); - this.btn_next = $('next'); - this.btn_start = $('start'); - this.btn_stop = $('stop'); - - this.btn_previous.observe('click', this.moveToPrevious.bindAsEventListener(this)); - this.btn_next.observe('click', this.moveToNext.bindAsEventListener(this)); - this.btn_start.observe('click', this.startSlideshow.bindAsEventListener(this)); - this.btn_stop.observe('click', this.stopSlideshow.bindAsEventListener(this)); - }, + this.element = $(element); + this.slides = this.element.childElements(); + this.num_slides = this.slides.length; + this.current_slide = (this.options.Random) ? (Math.floor(Math.random()*this.num_slides)) : 0; + this.end_slide = this.num_slides - 1; + + this.slides.invoke('hide'); + this.slides[this.current_slide].show(); + + if (this.options.Slideshow) { + this.startSlideshow(); + } + if (this.options.Controls) { + this.addControls(); + } + }, + + addControls: function() { + this.btn_previous = $('previous'); + this.btn_next = $('next'); + this.btn_start = $('start'); + this.btn_stop = $('stop'); + + this.btn_previous.observe('click', this.moveToPrevious.bindAsEventListener(this)); + this.btn_next.observe('click', this.moveToNext.bindAsEventListener(this)); + this.btn_start.observe('click', this.startSlideshow.bindAsEventListener(this)); + this.btn_stop.observe('click', this.stopSlideshow.bindAsEventListener(this)); + }, - startSlideshow: function(event) { - if (event) { Event.stop(event); } - if (!this.running) { - this.fadeStartBtn(); - this.executer = new PeriodicalExecuter(function(){ - this.updateSlide(this.current_slide+1); - }.bind(this),this.options.Delay); - this.running=true; - } - - }, - - fadeStartBtn: function() { - var startBtn = $('start'); - var stopBtn = $('stop'); - Effect.Fade(startBtn, { duration: 0.3 }), - Effect.Appear(stopBtn, { duration: 0.3 }) - }, - - stopSlideshow: function(event) { - if (event) { Event.stop(event); } - if (this.executer) { - this.fadeStopBtn(); - this.executer.stop(); - this.running=false; - } - }, - - fadeStopBtn: function() { - var startBtn = $('start'); - var stopBtn = $('stop'); - Effect.Fade(stopBtn, { duration: 0.3 }), - Effect.Appear(startBtn, { duration: 0.3 }) - }, + startSlideshow: function(event) { + if (event) { Event.stop(event); } + if (!this.running) { + this.fadeStartBtn(); + this.executer = new PeriodicalExecuter(function(){ + this.updateSlide(this.current_slide+1); + }.bind(this),this.options.Delay); + this.running=true; + } + + }, + + fadeStartBtn: function() { + var startBtn = $('start'); + var stopBtn = $('stop'); + Effect.Fade(startBtn, { duration: 0.3 }), + Effect.Appear(stopBtn, { duration: 0.3 }) + }, + + stopSlideshow: function(event) { + if (event) { Event.stop(event); } + if (this.executer) { + this.fadeStopBtn(); + this.executer.stop(); + this.running=false; + } + }, + + fadeStopBtn: function() { + var startBtn = $('start'); + var stopBtn = $('stop'); + Effect.Fade(stopBtn, { duration: 0.3 }), + Effect.Appear(startBtn, { duration: 0.3 }) + }, - moveToPrevious: function (event) { - if (event) { Event.stop(event); } - //this.stopSlideshow(); - this.updateSlide(this.current_slide-1); - }, + moveToPrevious: function (event) { + if (event) { Event.stop(event); } + //this.stopSlideshow(); + this.updateSlide(this.current_slide-1); + }, - moveToNext: function (event) { - if (event) { Event.stop(event); } - //this.stopSlideshow(); - this.updateSlide(this.current_slide+1); - }, - - updateSlide: function(next_slide) { - if (next_slide > this.end_slide) { - next_slide = 0; - } - else if ( next_slide == -1 ) { - next_slide = this.end_slide; - } - - this.fadeInOut(next_slide, this.current_slide); - }, + moveToNext: function (event) { + if (event) { Event.stop(event); } + //this.stopSlideshow(); + this.updateSlide(this.current_slide+1); + }, + + updateSlide: function(next_slide) { + if (next_slide > this.end_slide) { + next_slide = 0; + } + else if ( next_slide == -1 ) { + next_slide = this.end_slide; + } + + this.fadeInOut(next_slide, this.current_slide); + }, - fadeInOut: function (next, current) { - new Effect.Parallel([ - new Effect.Fade(this.slides[current], { sync: true }), - new Effect.Appear(this.slides[next], { sync: true }) - ], { duration: this.options.Duration }); - - this.current_slide = next; - } + fadeInOut: function (next, current) { + new Effect.Parallel([ + new Effect.Fade(this.slides[current], { sync: true }), + new Effect.Appear(this.slides[next], { sync: true }) + ], { duration: this.options.Duration }); + + this.current_slide = next; + } }); \ No newline at end of file diff --git a/specialpurpose/projectmgr/entitydef/entitymodel.xml b/specialpurpose/projectmgr/entitydef/entitymodel.xml index 1b9e79cc03..3ddf6558aa 100644 --- a/specialpurpose/projectmgr/entitydef/entitymodel.xml +++ b/specialpurpose/projectmgr/entitydef/entitymodel.xml @@ -31,7 +31,7 @@ under the License. - To order the workefforts under a workeffort parent + To order the workefforts under a workeffort parent diff --git a/specialpurpose/projectmgr/widget/forms/ProjectForms.xml b/specialpurpose/projectmgr/widget/forms/ProjectForms.xml index aa0f44747f..f34beb8cbf 100644 --- a/specialpurpose/projectmgr/widget/forms/ProjectForms.xml +++ b/specialpurpose/projectmgr/widget/forms/ProjectForms.xml @@ -314,13 +314,13 @@ - + - + @@ -340,7 +340,7 @@ - + diff --git a/themes/bizznesstime/webapp/bizznesstime/css/legacy.css b/themes/bizznesstime/webapp/bizznesstime/css/legacy.css index 58fbc24f0d..7d1302deca 100644 --- a/themes/bizznesstime/webapp/bizznesstime/css/legacy.css +++ b/themes/bizznesstime/webapp/bizznesstime/css/legacy.css @@ -18,469 +18,469 @@ */ .tooltip { /* tooltip style */ - background-color: #ffffbb; - border: 0.1em solid #999999; - color: #000000; - font-style: italic; - margin: 0.4em; - padding: 0.1em; + background-color: #ffffbb; + border: 0.1em solid #999999; + color: #000000; + font-style: italic; + margin: 0.4em; + padding: 0.1em; } .page-container { - background-color: #B8DFFC; + background-color: #B8DFFC; } /*********************************************** Boxes ***********************************************/ .boxhead { - color: #FFFFFF; - font-size: 1.1em; - font-weight: bold; + color: #FFFFFF; + font-size: 1.1em; + font-weight: bold; } .boxlink { - float: right; + float: right; } div.boxtop { - background-color: #333; - border-color: #999999; - border-style: solid; - margin: 0 auto 0 auto; - padding: 0.1em 0.4em 0.1em 0.4em; - text-align: center; + background-color: #333; + border-color: #999999; + border-style: solid; + margin: 0 auto 0 auto; + padding: 0.1em 0.4em 0.1em 0.4em; + text-align: center; } div.boxhead-left { - border: none; - color: #FFFFFF; - float: left; - font-size: 1.1em; - font-weight: bold; - width: auto; + border: none; + color: #FFFFFF; + float: left; + font-size: 1.1em; + font-weight: bold; + width: auto; } div.boxhead-fill { - border: none; - color: #FFFFFF; - font-size: 1.1em; - font-weight: bold; - text-align: center; - width: 0; + border: none; + color: #FFFFFF; + font-size: 1.1em; + font-weight: bold; + text-align: center; + width: 0; } div.boxhead-right { - border: none; - color: #FFFFFF; - float: right; - font-size: 1.1em; - font-weight: bold; - width: auto; + border: none; + color: #FFFFFF; + float: right; + font-size: 1.1em; + font-weight: bold; + width: auto; } .boxoutside { - background-color: #FFFFFF; - border: 0.1em solid #999999; + background-color: #FFFFFF; + border: 0.1em solid #999999; } .boxtop { - background-color: #333; - border: 0 solid #999999; - padding: 0.1em 0.4em 0.1em 0.4em; + background-color: #333; + border: 0 solid #999999; + padding: 0.1em 0.4em 0.1em 0.4em; } .boxbottom { - background-color: #FFFFFF; - border: 0 solid #999999; - padding: 0.4em; + background-color: #FFFFFF; + border: 0 solid #999999; + padding: 0.4em; } /*********************************************** Submenu ***********************************************/ .submenutextinfo { - border-right: 0.1em solid #5886C6; - color: #ffffff; - font-size: 0.9em; - font-weight: bold; - padding-left: 0.5em; - padding-right: 0.5em; + border-right: 0.1em solid #5886C6; + color: #ffffff; + font-size: 0.9em; + font-weight: bold; + padding-left: 0.5em; + padding-right: 0.5em; } .submenutext,a.submenutext,a.submenutext:visited { - color: #333; - font-size: 0.9em; - font-weight: bold; - padding-left: 0.2em; - padding-right: 0.5em; + color: #333; + font-size: 0.9em; + font-weight: bold; + padding-left: 0.2em; + padding-right: 0.5em; } a.submenutext:hover { - color: #1c334d; + color: #1c334d; } .submenutextdisabled, a.submenutextdisabled { - color: #ccc; - font-size: 0.9em; - font-weight: bold; - padding-left: 0.2em; - padding-right: 0.5em; + color: #ccc; + font-size: 0.9em; + font-weight: bold; + padding-left: 0.2em; + padding-right: 0.5em; } a.submenutextdisabled:hover { - color: #ccc; + color: #ccc; } .submenutextinforight { - color: #ffffff; - font-size: 0.9em; - font-weight: bold; - padding-left: 0.2em; + color: #ffffff; + font-size: 0.9em; + font-weight: bold; + padding-left: 0.2em; } .submenutextright, a.submenutextright { - color: #333; - font-size: 0.9em; - font-weight: bold; - padding-left: 0.2em; + color: #333; + font-size: 0.9em; + font-weight: bold; + padding-left: 0.2em; } a.submenutextright:hover { - color: #1c334d; + color: #1c334d; } .submenutextrightdisabled, a.submenutextrightdisabled { - color: #ccc; - font-size: 0.9em; - font-weight: bold; - padding-left: 0.2em; + color: #ccc; + font-size: 0.9em; + font-weight: bold; + padding-left: 0.2em; } a.submenutextrightdisabled:hover { - color: #ccc; + color: #ccc; } a img.imageborder { - border: 2px solid #ddd; + border: 2px solid #ddd; } /*********************************************** Trees ***********************************************/ .treeWrapper { - background-color: #ffffff; - border-top: 0.1em solid #eee; - border-left: 0.1em solid #eee; - color: #444; - font-size: 1.6em; - font-weight: normal; - margin-left: 1.2em; - margin-top: 0.2em; - text-align: left; - text-decoration: none; + background-color: #ffffff; + border-top: 0.1em solid #eee; + border-left: 0.1em solid #eee; + color: #444; + font-size: 1.6em; + font-weight: normal; + margin-left: 1.2em; + margin-top: 0.2em; + text-align: left; + text-decoration: none; } .treewrapper { - margin-left: 1em; + margin-left: 1em; } .treeitem { - border: #888888 solid 0.1em; - color: #333; - font-size: 1.4em; - font-weight: bold; + border: #888888 solid 0.1em; + color: #333; + font-size: 1.4em; + font-weight: bold; } .basic-tree ul { - padding-left: 1em; + padding-left: 1em; } .basic-tree li { - padding-left: 1em; - white-space: nowrap; + padding-left: 1em; + white-space: nowrap; } .basic-tree li .expanded { - background: url(/images/collapse.gif) no-repeat left center; - padding-right: 1em; + background: url(/images/collapse.gif) no-repeat left center; + padding-right: 1em; } .basic-tree li .collapsed { - background: url(/images/expand.gif) no-repeat left center; - padding-right: 1em; + background: url(/images/expand.gif) no-repeat left center; + padding-right: 1em; } .basic-tree li .leafnode { - background: url(/images/expand-collapse-placeholder.gif) no-repeat left center; - padding-right: 1em; + background: url(/images/expand-collapse-placeholder.gif) no-repeat left center; + padding-right: 1em; } .basic-tree li .treeitem { - border-style: none; - color: #333; - font-size: 1em; + border-style: none; + color: #333; + font-size: 1em; } .basic-tree li a:hover { - color: #333; + color: #333; } /*********************************************** Navigation Bars ***********************************************/ .basic-nav { - padding-left: 1em; + padding-left: 1em; } .basic-nav ul a { - color: #333; - font-size: 1.1em; + color: #333; + font-size: 1.1em; } .basic-nav ul .selected, .basic-nav ul .selected a { - color: #1c334d; + color: #1c334d; } .basic-nav ul a:hover { - color: #1c334d; + color: #1c334d; } .basic-nav ul .disabled, .basic-nav ul .disabled a { - color: #ccc; + color: #ccc; } .tool-bar { - background-color: #D4D0C8; - border: 0.1em solid #333; - padding: 0.2em; + background-color: #D4D0C8; + border: 0.1em solid #333; + padding: 0.2em; } .tool-bar ul li { - background-color: #D4D0C8; - padding: 0.1em; + background-color: #D4D0C8; + padding: 0.1em; } .nav-pager { - padding:0.08em 0 0.5em 0; - clear:both; - display:block; - position:relative; - margin:0px 0 10px 0; + padding:0.08em 0 0.5em 0; + clear:both; + display:block; + position:relative; + margin:0px 0 10px 0; } .nav-pager ul { - display: inline; /* IE Fix */ + display: inline; /* IE Fix */ } .nav-pager ul li { - background-color: #ffffff; - float: left; - font-weight: bold; - line-height: 1.8em; - margin: 0.2em; + background-color: #ffffff; + float: left; + font-weight: bold; + line-height: 1.8em; + margin: 0.2em; } .nav-pager ul li a { - display: block; - color:#444444; - font-weight: bold; + display: block; + color:#444444; + font-weight: bold; } .nav-pager ul .nav-first, .nav-pager ul .nav-previous, .nav-pager ul .nav-next, .nav-pager ul .nav-last { - background-color:#fff; - border:2px solid #ddd; - color:#444; - padding: 0 0.5em 0 0.5em; + background-color:#fff; + border:2px solid #ddd; + color:#444; + padding: 0 0.5em 0 0.5em; } .nav-pager ul .nav-first-disabled, .nav-pager ul .nav-previous-disabled, .nav-pager ul .nav-next-disabled, .nav-pager ul .nav-last-disabled { - background-color:#fff; - border:2px solid #ddd; - color:#ccc; - padding: 0 0.5em 0 0.5em; + background-color:#fff; + border:2px solid #ddd; + color:#ccc; + padding: 0 0.5em 0 0.5em; } .nav-pager select { - margin: 0; + margin: 0; } /*********************************************** Legacy Table Styles ***********************************************/ .formTableBordered { - border: 2px solid #eee; - width: 100%; + border: 2px solid #eee; + width: 100%; } .basic-table { - margin-bottom: 1em; - width: 100%; + margin-bottom: 1em; + width: 100%; } form .basic-table, .screenlet-body .basic-table { - margin-bottom: 0; + margin-bottom: 0; } .basic-table tr th,.basic-table .header-row { - font-weight: bold; - text-align: left; + font-weight: bold; + text-align: left; } .basic-table .header-row td { - border-bottom: 1px solid #999; + border-bottom: 1px solid #999; } .basic-table .header-row td a { - color: #000000; + color: #000000; } .basic-table .alternate-row { - background-color: #f5f6eb; + background-color: #f5f6eb; } .basic-table .selected { - background: #FFFCCF; + background: #FFFCCF; } .basic-table .alternate-rowSelected { - background: #FFF55F; + background: #FFF55F; } .basic-table .Validate { - background: #A0D5F7; + background: #A0D5F7; } .basic-table .alternate-rowValidate { - background: #72A8F2; + background: #72A8F2; } .basic-table .Warn { - background: #f55C5C; + background: #f55C5C; } .basic-table .alternate-rowWarn { - background: #FC7455; + background: #FC7455; } .basic-table tr .button-col { - vertical-align: top; + vertical-align: top; } .basic-table tr .button-col a { - background:url(../images/btn-bg.gif) center left repeat-x; - border: 2px solid #ddd; - color: #333; - float: left; - font-weight:bold; - margin: 0 0.1em 0 0.1em; - padding: 0.1em 0.4em 0.1em 0.4em; - text-transform:uppercase; - white-space: nowrap; + background:url(../images/btn-bg.gif) center left repeat-x; + border: 2px solid #ddd; + color: #333; + float: left; + font-weight:bold; + margin: 0 0.1em 0 0.1em; + padding: 0.1em 0.4em 0.1em 0.4em; + text-transform:uppercase; + white-space: nowrap; } .basic-table tr .smallSubmit,.basic-table tr .smallSubmit:visited { - background:url(../images/btn-bg.gif) center left repeat-x; - border:2px solid #ddd; - color:#444; - font-weight:bold; - line-height:1.8em; - margin:5px 5px 2px; - padding:2px 4px; - text-transform:uppercase; + background:url(../images/btn-bg.gif) center left repeat-x; + border:2px solid #ddd; + color:#444; + font-weight:bold; + line-height:1.8em; + margin:5px 5px 2px; + padding:2px 4px; + text-transform:uppercase; } .basic-table tr .button-col a:hover, .basic-table tr .button-col a:active { - color: #1c334d; - margin: 0 0.1em 0 0.1em; - padding: 0.1em 0.4em 0.1em 0.4em; + color: #1c334d; + margin: 0 0.1em 0 0.1em; + padding: 0.1em 0.4em 0.1em 0.4em; } .basic-table .collapsed { - visibility: collapse; + visibility: collapse; } .basic-table .header-row-2 th, .basic-table .header-row-2 td { - background:#D14B1F url(../images/tableheader-bg.jpg) repeat-x scroll 0 -100px; - border-bottom:2px solid #FFFFFF; - border-left:1px solid #D14B1F; - color: #fff; - font-weight: bold; - text-align: left; + background:#D14B1F url(../images/tableheader-bg.jpg) repeat-x scroll 0 -100px; + border-bottom:2px solid #FFFFFF; + border-left:1px solid #D14B1F; + color: #fff; + font-weight: bold; + text-align: left; } .basic-table .header-row-2 th a, .basic-table .header-row-2 td a { - color:#fff; + color:#fff; } .basic-table .header-row-2 th .sort-order-asc, .basic-table .header-row-2 td .sort-order-asc { - background: url(/images/arrow-gr-up.png) no-repeat right; - padding-right: 20px; + background: url(/images/arrow-gr-up.png) no-repeat right; + padding-right: 20px; } .basic-table .header-row-2 th .sort-order-desc, .basic-table .header-row-2 td .sort-order-desc { - background: url(/images/arrow-gr-dw.png) no-repeat right; - padding-right: 20px; + background: url(/images/arrow-gr-dw.png) no-repeat right; + padding-right: 20px; } .basic-table .header-row-2 th .sort-order, .basic-table .header-row-2 td .sort-order { - background: url(/images/arrow-gr.png) no-repeat right; - padding-right: 20px; + background: url(/images/arrow-gr.png) no-repeat right; + padding-right: 20px; } .dark-grid { - border-right: 0.1em solid #000000; - border-top: 0.1em solid #000000; + border-right: 0.1em solid #000000; + border-top: 0.1em solid #000000; } .dark-grid td, .dark-grid .header-row-2 th, .dark-grid .header-row-2 td { - border-bottom: 0.1em solid #000000; - border-left: 0.1em solid #000000; + border-bottom: 0.1em solid #000000; + border-left: 0.1em solid #000000; } .light-grid { - border-right: 0.1em solid #cccccc; - border-top: 0.1em solid #cccccc; + border-right: 0.1em solid #cccccc; + border-top: 0.1em solid #cccccc; } .light-grid td, .light-grid .header-row td { - border-bottom: 0.1em solid #cccccc; - border-left: 0.1em solid #cccccc; + border-bottom: 0.1em solid #cccccc; + border-left: 0.1em solid #cccccc; } .form-widget table tr .label, .form-widget-table tr .label { - /* Added for backward compatibility */ - width: 20%; + /* Added for backward compatibility */ + width: 20%; } .form-widget table,.form-widget-table { - width: auto; + width: auto; } .form-widget-table { - margin-bottom: 1em; + margin-bottom: 1em; } /*********************************************** @@ -520,184 +520,184 @@ height:16px; } .calendar { - border-right: 0.1em solid #cccccc; + border-right: 0.1em solid #cccccc; } .calendar tr td { - border-bottom: 0.1em solid #cccccc; - border-left: 0.1em solid #cccccc; - vertical-align: top; - padding: 0.5em; + border-bottom: 0.1em solid #cccccc; + border-left: 0.1em solid #cccccc; + vertical-align: top; + padding: 0.5em; } .calendar .header-row td { - background-color: #69a9d9; - border-bottom: 0.1em solid #cccccc; - border-left: 0.1em solid #cccccc; - color: #ffffff; - height: auto; - text-align: center; + background-color: #69a9d9; + border-bottom: 0.1em solid #cccccc; + border-left: 0.1em solid #cccccc; + color: #ffffff; + height: auto; + text-align: center; } .calendar tr td .add-new { - float: right; + float: right; } .calendar tr td .h1 { - color: #333; - float: left; + color: #333; + float: left; } .calendar .current-period { - background-color: #ffffcc; + background-color: #ffffcc; } .calendar .active-period { - background-color: #eeeeee; + background-color: #eeeeee; } .calendar_date_select { - color: #fff; - border: #bbb 2px solid; - display: block; - width: 300px; - z-index: 1000; + color: #fff; + border: #bbb 2px solid; + display: block; + width: 300px; + z-index: 1000; } .calendar_date_select thead th { - font-weight: bold; - background-color: #666; - border-top: 1px solid #777; - border-bottom: 2px solid #777; - color: white !important; + font-weight: bold; + background-color: #666; + border-top: 1px solid #777; + border-bottom: 2px solid #777; + color: white !important; } .calendar_date_select .cds_buttons { - text-align: center; - padding: 5px 0px; - background-color: #666; + text-align: center; + padding: 5px 0px; + background-color: #666; } .calendar_date_select .cds_footer { - background-color: #fff; - padding: 3px; - font-size: 12px; - text-align: center; - color:#333; + background-color: #fff; + padding: 3px; + font-size: 12px; + text-align: center; + color:#333; } .calendar_date_select .cds_footer span { - display:none + display:none } .calendar_date_select table { - margin: 0px; - padding: 0px; + margin: 0px; + padding: 0px; } .calendar_date_select .cds_header { - background-color: #fff; - border-bottom: 2px solid #777; - text-align: center; + background-color: #fff; + border-bottom: 2px solid #777; + text-align: center; } .calendar_date_select .cds_header span { - font-size: 15px; - color: #000; - font-weight: bold; + font-size: 15px; + color: #000; + font-weight: bold; } .calendar_date_select select { - font-size: 11px; + font-size: 11px; } .calendar_date_select .cds_header a:hover { - color: #1c334d; + color: #1c334d; } .calendar_date_select .cds_header a { - width: 22px; - height: 20px; - text-decoration: none; - font-size: 14px; - color: #000 !important; + width: 22px; + height: 20px; + text-decoration: none; + font-size: 14px; + color: #000 !important; } .calendar_date_select .cds_header a.prev { - float: left; + float: left; } .calendar_date_select .cds_header a.next { - float: right; + float: right; } .calendar_date_select .cds_header a.close { - float: right; - display: none; + float: right; + display: none; } .calendar_date_select .cds_header select.month { - width: 90px; + width: 90px; } .calendar_date_select .cds_header select.year { - width: 61px; + width: 61px; } .calendar_date_select .cds_buttons a { - color: #ccc; - font-size: 11px; + color: #ccc; + font-size: 11px; } .calendar_date_select td { - font-size: 12px; - width: 24px; - height: 21px; - text-align: center; - vertical-align: middle; - background-color: #f2f2f2; + font-size: 12px; + width: 24px; + height: 21px; + text-align: center; + vertical-align: middle; + background-color: #f2f2f2; } .calendar_date_select td.weekend { - background-color: #f6f6f6; + background-color: #f6f6f6; } .calendar_date_select td div { - color: #333; + color: #333; } .calendar_date_select td div.other { - color: #888; + color: #888; } .calendar_date_select td.selected div { - color: #000; + color: #000; } .calendar_date_select tbody td { - border-bottom: 1px solid #555; + border-bottom: 1px solid #555; } .calendar_date_select td.selected { - background-color: #fff; + background-color: #fff; } .calendar_date_select td.today { - border: 1px dashed #222; + border: 1px dashed #222; } .calendar_date_select td.disabled div { - color: #454545; + color: #454545; } /* this is a fun ie6 hack to get drop downs to stay behind the popup window. This should always be just underneath .calendar_date_select */ iframe.ie6_blocker { - position: absolute; - z-index: 999; + position: absolute; + z-index: 999; } .fieldWithErrors .calendar_date_select { - border: 2px solid #FF0000; + border: 2px solid #FF0000; } /*********************************************** @@ -713,41 +713,41 @@ Legacy Forms