dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #17864
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 7282: local vn - Fixed bug generating the category vertical report.
------------------------------------------------------------
revno: 7282
committer: Hieu <hieu.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Wed 2012-06-13 13:57:31 +0700
message:
local vn - Fixed bug generating the category vertical report.
modified:
local/vn/dhis-web-spreadsheet-reporting/src/main/java/org/hisp/dhis/reportsheet/exporting/action/GenerateReportVerticalCategoryAction.java
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== modified file 'local/vn/dhis-web-spreadsheet-reporting/src/main/java/org/hisp/dhis/reportsheet/exporting/action/GenerateReportVerticalCategoryAction.java'
--- local/vn/dhis-web-spreadsheet-reporting/src/main/java/org/hisp/dhis/reportsheet/exporting/action/GenerateReportVerticalCategoryAction.java 2012-06-06 09:43:47 +0000
+++ local/vn/dhis-web-spreadsheet-reporting/src/main/java/org/hisp/dhis/reportsheet/exporting/action/GenerateReportVerticalCategoryAction.java 2012-06-13 06:57:31 +0000
@@ -87,6 +87,7 @@
for ( ExportItem reportItem : exportReportItems )
{
int run = 0;
+ int chapperNo = 0;
int rowBegin = reportItem.getRow();
for ( CategoryOptionGroupOrder group : exportReport.getCategoryOptionGroupOrders() )
@@ -98,6 +99,11 @@
ExcelUtils.writeValueByPOI( rowBegin, reportItem.getColumn(), group.getName(), ExcelUtils.TEXT,
sheet, this.csText10Bold );
}
+ else if ( reportItem.getItemType().equalsIgnoreCase( ExportItem.TYPE.SERIAL ) )
+ {
+ ExcelUtils.writeValueByPOI( rowBegin, reportItem.getColumn(), chappter[chapperNo++],
+ ExcelUtils.TEXT, sheet, this.csText10Bold );
+ }
run++;
rowBegin++;
@@ -138,8 +144,6 @@
ExcelUtils.writeValueByPOI( rowBegin, reportItem.getColumn(), String.valueOf( value ),
ExcelUtils.NUMBER, sheet, this.csNumber );
-
- break;
}
rowBegin++;