dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #11321
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 3203: Sorting orgunits in completeness report by completeness percentage
------------------------------------------------------------
revno: 3203
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2011-03-29 13:00:48 +0200
message:
Sorting orgunits in completeness report by completeness percentage
modified:
dhis-2/dhis-web/dhis-web-reporting/src/main/java/org/hisp/dhis/reporting/completeness/action/GetDataCompletenessAction.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 'dhis-2/dhis-web/dhis-web-reporting/src/main/java/org/hisp/dhis/reporting/completeness/action/GetDataCompletenessAction.java'
--- dhis-2/dhis-web/dhis-web-reporting/src/main/java/org/hisp/dhis/reporting/completeness/action/GetDataCompletenessAction.java 2011-02-23 14:27:49 +0000
+++ dhis-2/dhis-web/dhis-web-reporting/src/main/java/org/hisp/dhis/reporting/completeness/action/GetDataCompletenessAction.java 2011-03-29 11:00:48 +0000
@@ -217,6 +217,11 @@
grid.addValue( result.getRegistrationsOnTime() );
grid.addValue( result.getPercentageOnTime() );
}
+
+ if ( grid.getWidth() >= 4 )
+ {
+ grid.sortGrid( 4, 1 );
+ }
return grid;
}