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>
+ #if>
#if>
#list>
<#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;
}
{
-