=== modified file 'local/in/dhis-in-services/dhis-in-service-configuration/src/main/resources/META-INF/dhis/beans.xml' --- local/in/dhis-in-services/dhis-in-service-configuration/src/main/resources/META-INF/dhis/beans.xml 2010-06-04 11:50:05 +0000 +++ local/in/dhis-in-services/dhis-in-service-configuration/src/main/resources/META-INF/dhis/beans.xml 2010-06-20 07:27:46 +0000 @@ -2,7 +2,7 @@ +http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd"> === modified file 'local/in/dhis-in-services/dhis-in-service-dbmanager/src/main/resources/META-INF/dhis/beans.xml' --- local/in/dhis-in-services/dhis-in-service-dbmanager/src/main/resources/META-INF/dhis/beans.xml 2010-06-04 11:50:05 +0000 +++ local/in/dhis-in-services/dhis-in-service-dbmanager/src/main/resources/META-INF/dhis/beans.xml 2010-06-20 07:27:46 +0000 @@ -2,7 +2,7 @@ +http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd"> === modified file 'local/in/dhis-in-services/dhis-in-service-linelisting/src/main/resources/META-INF/dhis/beans.xml' --- local/in/dhis-in-services/dhis-in-service-linelisting/src/main/resources/META-INF/dhis/beans.xml 2010-06-04 11:50:05 +0000 +++ local/in/dhis-in-services/dhis-in-service-linelisting/src/main/resources/META-INF/dhis/beans.xml 2010-06-20 07:27:46 +0000 @@ -2,7 +2,7 @@ +http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd"> === modified file 'local/in/dhis-in-services/dhis-in-service-survey/src/main/resources/META-INF/dhis/beans.xml' --- local/in/dhis-in-services/dhis-in-service-survey/src/main/resources/META-INF/dhis/beans.xml 2010-06-04 11:50:05 +0000 +++ local/in/dhis-in-services/dhis-in-service-survey/src/main/resources/META-INF/dhis/beans.xml 2010-06-20 07:27:46 +0000 @@ -2,7 +2,7 @@ +http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd"> === modified file 'local/in/dhis-web-reports-national/src/main/java/org/hisp/dhis/reports/action/GetPeriodsAction.java' --- local/in/dhis-web-reports-national/src/main/java/org/hisp/dhis/reports/action/GetPeriodsAction.java 2010-06-04 11:50:05 +0000 +++ local/in/dhis-web-reports-national/src/main/java/org/hisp/dhis/reports/action/GetPeriodsAction.java 2010-06-20 07:27:46 +0000 @@ -161,9 +161,18 @@ periodNameList.add( simpleDateFormat1.format( p1.getStartDate() ) + "-" + year ); } } + else if ( periodType.getName().equalsIgnoreCase( "daily" ) ) + { + simpleDateFormat1 = new SimpleDateFormat( "yyyy-MM-dd" ); + + for ( Period p1 : periods ) + { + periodNameList.add( simpleDateFormat1.format( p1.getStartDate() ) ); + } + } else { - simpleDateFormat1 = new SimpleDateFormat( "yyyy-mm-dd" ); + simpleDateFormat1 = new SimpleDateFormat( "yyyy-MM-dd" ); for ( Period p1 : periods ) { String tempPeriodName = simpleDateFormat1.format( p1.getStartDate() ) + " - " === modified file 'local/in/dhis-web-reports-national/src/main/java/org/hisp/dhis/reports/routine/action/GenerateRoutineReportAnalyserResultAction.java' --- local/in/dhis-web-reports-national/src/main/java/org/hisp/dhis/reports/routine/action/GenerateRoutineReportAnalyserResultAction.java 2010-06-15 11:26:37 +0000 +++ local/in/dhis-web-reports-national/src/main/java/org/hisp/dhis/reports/routine/action/GenerateRoutineReportAnalyserResultAction.java 2010-06-20 07:27:46 +0000 @@ -298,7 +298,7 @@ { return simpleYearFormat; } - + private List deCodeType; private List serviceType; @@ -856,7 +856,10 @@ tempStr = orgUnitPPP.getParent().getName(); } - + else if ( deCodeString.equalsIgnoreCase( "FACILITYCOMMENT" ) ) + { + tempStr = currentOrgUnit.getComment(); + } else if ( deCodeString.equalsIgnoreCase( "PERIOD" ) || deCodeString.equalsIgnoreCase( "PERIOD-NOREPEAT" ) ) { === modified file 'local/in/dhis-web-reports-national/src/main/java/org/hisp/dhis/reports/upward/action/GenerateUpwardReportAnalyserResultAction.java' --- local/in/dhis-web-reports-national/src/main/java/org/hisp/dhis/reports/upward/action/GenerateUpwardReportAnalyserResultAction.java 2010-06-15 11:26:37 +0000 +++ local/in/dhis-web-reports-national/src/main/java/org/hisp/dhis/reports/upward/action/GenerateUpwardReportAnalyserResultAction.java 2010-06-20 07:27:46 +0000 @@ -395,6 +395,7 @@ int deFlag2; + int isAggregated = 0; // ------------------------------------------------------------------------- // Action implementation // ------------------------------------------------------------------------- @@ -2017,6 +2018,8 @@ */ private String getResultDataValue( String formula, Date startDate, Date endDate, OrganisationUnit organisationUnit ) { + isAggregated = 0; + try { //6b1b7b5b7b5b7 @@ -2057,12 +2060,15 @@ if ( aggregatedValue == AggregationService.NO_VALUES_REGISTERED ) { replaceString = NULL_REPLACEMENT; - deFlag2 = 1; - } else + deFlag2 = 0; + } + else { replaceString = String.valueOf( aggregatedValue ); deFlag2 = 1; + + isAggregated = 0; } } else @@ -2158,6 +2164,11 @@ resultValue = buffer.toString(); } + //if( isAggregated == 0 ) + //{ + // resultValue = " "; + //} + if ( resultValue.equalsIgnoreCase( "" ) ) { resultValue = " ";