dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #16816
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 6498: local vn - Fixed bug show indicator value when generating the Period listing report.
------------------------------------------------------------
revno: 6498
committer: Hieu <hieu.hispvietnam@xxxxxxxxx>
branch nick: dhis2
timestamp: Fri 2012-04-06 15:44:30 +0700
message:
local vn - Fixed bug show indicator value when generating the Period listing report.
added:
local/vn/dhis-web-spreadsheet-reporting/src/main/webapp/dhis-web-spreadsheet-reporting/images/question.png
modified:
local/vn/dhis-web-spreadsheet-reporting/src/main/java/org/hisp/dhis/reportsheet/exporting/action/GenerateReportPeriodColumnListingAction.java
local/vn/dhis-web-spreadsheet-reporting/src/main/webapp/dhis-web-spreadsheet-reporting/report/exportReports.vm
--
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/GenerateReportPeriodColumnListingAction.java'
--- local/vn/dhis-web-spreadsheet-reporting/src/main/java/org/hisp/dhis/reportsheet/exporting/action/GenerateReportPeriodColumnListingAction.java 2011-11-03 04:26:28 +0000
+++ local/vn/dhis-web-spreadsheet-reporting/src/main/java/org/hisp/dhis/reportsheet/exporting/action/GenerateReportPeriodColumnListingAction.java 2012-04-06 08:44:30 +0000
@@ -33,14 +33,12 @@
import org.apache.poi.ss.usermodel.Sheet;
import org.hisp.dhis.organisationunit.OrganisationUnit;
import org.hisp.dhis.period.Period;
-import org.hisp.dhis.reportsheet.PeriodColumn;
+import org.hisp.dhis.reportsheet.ExportItem;
import org.hisp.dhis.reportsheet.ExportReport;
-import org.hisp.dhis.reportsheet.ExportItem;
import org.hisp.dhis.reportsheet.ExportReportPeriodColumnListing;
+import org.hisp.dhis.reportsheet.PeriodColumn;
import org.hisp.dhis.reportsheet.exporting.AbstractGenerateExcelReportSupport;
import org.hisp.dhis.reportsheet.utils.ExcelUtils;
-import org.hisp.dhis.reportsheet.utils.ExpressionUtils;
-import org.hisp.dhis.system.util.MathUtils;
/**
* @author Tran Thanh Tri
@@ -89,15 +87,11 @@
if ( reportItem.getItemType().equalsIgnoreCase( ExportItem.TYPE.DATAELEMENT ) )
{
- value = MathUtils.calculateExpression( ExpressionUtils.generateExpression( reportItem, p
- .getStartdate(), p.getEnddate(), organisationUnit, dataElementService, categoryService,
- aggregationService ) );
+ value = this.getDataValue( reportItem, organisationUnit );
}
else if ( reportItem.getItemType().equalsIgnoreCase( ExportItem.TYPE.INDICATOR ) )
{
- value = MathUtils.calculateExpression( ExpressionUtils.generateExpression( reportItem, p
- .getStartdate(), p.getEnddate(), organisationUnit, dataElementService, categoryService,
- aggregationService ) );
+ value = this.getIndicatorValue( reportItem, organisationUnit );
}
ExcelUtils.writeValueByPOI( reportItem.getRow(), p.getColumn(), String.valueOf( value ),
=== added file 'local/vn/dhis-web-spreadsheet-reporting/src/main/webapp/dhis-web-spreadsheet-reporting/images/question.png'
Binary files local/vn/dhis-web-spreadsheet-reporting/src/main/webapp/dhis-web-spreadsheet-reporting/images/question.png 1970-01-01 00:00:00 +0000 and local/vn/dhis-web-spreadsheet-reporting/src/main/webapp/dhis-web-spreadsheet-reporting/images/question.png 2012-04-06 08:44:30 +0000 differ
=== modified file 'local/vn/dhis-web-spreadsheet-reporting/src/main/webapp/dhis-web-spreadsheet-reporting/report/exportReports.vm'
--- local/vn/dhis-web-spreadsheet-reporting/src/main/webapp/dhis-web-spreadsheet-reporting/report/exportReports.vm 2012-03-29 10:05:35 +0000
+++ local/vn/dhis-web-spreadsheet-reporting/src/main/webapp/dhis-web-spreadsheet-reporting/report/exportReports.vm 2012-04-06 08:44:30 +0000
@@ -21,8 +21,8 @@
</tr>
</thead>
<tbody id="list">
- #foreach( $exportReport in $exportReports )
- #set( $exist = $templateMap.get( $exportReport.excelTemplateFile ) )
+ #foreach( $exportReport in $!exportReports )
+ #set( $exist = $!templateMap.get( $exportReport.excelTemplateFile ) )
<tr id="tr${exportReport.id}">
<td>$!encoder.htmlEncode( $exportReport.displayName )</td>
<td>$i18n.getString( $exportReport.reportType )</td>
@@ -30,7 +30,7 @@
#if( $exist )
<a href="downloadFile.action?fileName=$encoder.htmlEncode( $exportReport.excelTemplateFile )" title="download">$encoder.htmlEncode( $exportReport.excelTemplateFile )</a>
#else
- $encoder.htmlEncode( $exportReport.excelTemplateFile ) <img src="../images/warning.png" alt="$i18n.getString( 'missing_template' )" title="$i18n.getString( 'missing_template' )"/>
+ $encoder.htmlEncode( $exportReport.excelTemplateFile ) <img src="images/question.png" alt="$i18n.getString( 'missing_template' )" title="$i18n.getString( 'missing_template' )"/>
#end
</td>
<td align="left">