------------------------------------------------------------
revno: 3203
committer: Lars Helge Overland <[email protected]>
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;
     }

_______________________________________________
Mailing list: https://launchpad.net/~dhis2-devs
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~dhis2-devs
More help   : https://help.launchpad.net/ListHelp

Reply via email to