← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 6195: Revert r 6194, argh

 

------------------------------------------------------------
revno: 6195
committer: Lars Helge Overland <larshelge@xxxxxxxxx>
branch nick: dhis2
timestamp: Wed 2012-03-07 08:39:30 +0100
message:
  Revert r 6194, argh
modified:
  dhis-2/dhis-api/src/main/java/org/hisp/dhis/reporttable/ReportTable.java
  dhis-2/dhis-services/dhis-service-administration/src/main/resources/META-INF/dhis/beans.xml
  dhis-2/dhis-services/dhis-service-reporting/src/main/java/org/hisp/dhis/report/impl/DefaultReportService.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-api/src/main/java/org/hisp/dhis/reporttable/ReportTable.java'
--- dhis-2/dhis-api/src/main/java/org/hisp/dhis/reporttable/ReportTable.java	2012-03-07 07:32:27 +0000
+++ dhis-2/dhis-api/src/main/java/org/hisp/dhis/reporttable/ReportTable.java	2012-03-07 07:39:30 +0000
@@ -456,7 +456,7 @@
 
     /**
      * Creates a map which contains mappings between the organisation unit
-     * uid and the name of the group this organisation unit is a member
+     * identifier and the name of the group this organisation unit is a member
      * of in all of the given group sets for all organisation units in this
      * report table.
      *
@@ -469,13 +469,13 @@
 
         for ( OrganisationUnitGroupSet groupSet : groupSets )
         {
-            Map<String, String> map = new HashMap<String, String>();
+            Map<Integer, String> map = new HashMap<Integer, String>();
 
             for ( NameableObject unit : allUnits )
             {
                 if ( unit instanceof OrganisationUnit )
                 {
-                    map.put( unit.getUid(), ((OrganisationUnit) unit).getGroupNameInGroupSet( groupSet ) );
+                    map.put( unit.getId(), ((OrganisationUnit) unit).getGroupNameInGroupSet( groupSet ) );
                 }
             }
 

=== modified file 'dhis-2/dhis-services/dhis-service-administration/src/main/resources/META-INF/dhis/beans.xml'
--- dhis-2/dhis-services/dhis-service-administration/src/main/resources/META-INF/dhis/beans.xml	2012-03-07 07:32:27 +0000
+++ dhis-2/dhis-services/dhis-service-administration/src/main/resources/META-INF/dhis/beans.xml	2012-03-07 07:39:30 +0000
@@ -70,6 +70,7 @@
   <bean id="org.hisp.dhis.datamerge.DataMergeStore" class="org.hisp.dhis.datamerge.jdbc.JdbcDataMergeStore">
     <property name="jdbcTemplate" ref="jdbcTemplate" />
     <property name="statementBuilder" ref="statementBuilder" />
+	<!--property name="statementManager" ref="statementManager"/-->
   </bean>
 
   <bean id="org.hisp.dhis.datamerge.DataMergeService" class="org.hisp.dhis.datamerge.DefaultDataMergeService">

=== modified file 'dhis-2/dhis-services/dhis-service-reporting/src/main/java/org/hisp/dhis/report/impl/DefaultReportService.java'
--- dhis-2/dhis-services/dhis-service-reporting/src/main/java/org/hisp/dhis/report/impl/DefaultReportService.java	2012-03-07 07:32:27 +0000
+++ dhis-2/dhis-services/dhis-service-reporting/src/main/java/org/hisp/dhis/report/impl/DefaultReportService.java	2012-03-07 07:39:30 +0000
@@ -145,7 +145,7 @@
 
                 if ( report.isUsingOrganisationUnitGroupSets() )
                 {
-                    params.putAll( reportTable.getOrganisationUnitGroupMap( organisationUnitGroupService.getAllOrganisationUnitGroupSets() ) );
+                    params.putAll( reportTable.getOrganisationUnitGroupMap( organisationUnitGroupService.getCompulsoryOrganisationUnitGroupSets() ) );
                 }
 
                 print = JasperFillManager.fillReport( jasperReport, params, grid );
@@ -168,7 +168,7 @@
             {
                 JRExportUtils.export( type, out, print );
             }
-        }
+        } 
         catch ( Exception ex )
         {
             throw new RuntimeException( "Failed to render report", ex );